10 buf.each do |i| print i end
17 gsub!("@seealso", "@par »²¾È:")
18 gsub!("@errors", "@par ¥¨¥é¡¼:")
19 gsub!("@returns", "@par Ìá¤êÃÍ:")
20 gsub!("@return", "@par Ìá¤êÃÍ:")
21 #let doxygen find functions
22 gsub!(/[a-zA-Z_]\s\(\)/) {|m| m.delete!(" ")}
23 #make variables in function descriptions shown in bold
24 gsub!(/\$[A-Z_]+/) {|m| m.delete!("$").reverse.downcase!.concat(" b@").reverse}
29 buf.push($_.gsub!(/#endif/, "@endcode"))
35 else # when example == 0
39 if doxy == 1 # empty line in doxygen comment
42 when /\/\*=\*\// #/*=*/ (flush)
46 when /^\/\*\s.*\*\// # /* comment */ type comment
48 # # should be included only in the example code
49 # ## We used to do the following substituion as a workaround of
51 # ## buf.push($_.gsub!(/\*\//, " ").gsub!(/\/\*/, "//"))
55 when /\/\*\s.*\*\// # code + /* comment */ type comment
57 # # should be included in the example code
58 # ## See the above comment.
59 # ## buf.push($_.gsub!(/\*\//, " ").gsub!(/\/\*/, "//"))
60 # buf.push($_) # should be included in the example code
65 print $_.gsub!(/\/\*\s.*\*\//," ") # should be omiited in code
69 when /\/\*{2,3}en.*\*\// #english one liner is omitted
70 when /\/\*\*ja.*\*\// #one liner
71 when /\/\*\*\*ja.*\*\// #one liner
72 buf.push($_.gsub!(/\/\*+ja/, " ").gsub!(/\*\//, " ")).push("\n")
73 when /\/\*\*\s.*\*\// #one liner
74 when /\/\*\*\*\s.*\*\// #one liner
75 buf.push($_.gsub!(/\/\*+/, " ").gsub!(/\*\//, " ")).push("\n")
77 when /\/\*{1,2}\s|\/\*{2,3}en|\/\*\*ja/ #this is not for Ja nor users
80 buf.push($_.gsub!(/\/\*+ja/, " "))
83 buf.push($_.gsub!(/\/\*+/, " "))
87 #start example code lines
88 buf.push($_.gsub!(/#if EXAMPLE_CODE/, "\n \n @par Î㡧 \n @code"))
93 buf.push($_.gsub!(/\*\//, " "))