9 buf.each do |i| print i end
16 gsub!("@seealso", "@par See Also:")
17 gsub!("@errors", "@par Errors:")
18 #let doxygen find functions
19 gsub!(/[a-z_]\s\(\)/) {|m| m.delete!(" ")}
20 #make variables in function descriptions shown in bold
21 gsub!(/\$[A-Z_]+/) {|m| m.delete!("$").reverse.downcase!.concat(" e@").reverse}
32 when /\/\*\s.*\*\// # /* comment */ type comment
33 if doxy == 1 # should be included only in the example code
34 buf.push($_.gsub!(/\*\//, " ").gsub!(/\/\*/, "//"))
36 when /\/\*{2,3}ja.*\*\// #japanese one liner
37 when /\/\*{2,3}en.*\*\// #one liner
38 buf.push($_.gsub!(/\/\*+en/, " ").gsub!(/\*\//, " ")).push("\n")
39 when /\/\*{2,3}.*\*\// #one liner
40 buf.push($_.gsub!(/\/\*+/, " ").gsub!(/\*\//, " ")).push("\n")
42 when /\/\*\s|\/\*{2,3}ja/
45 buf.push($_.gsub!(/\/\*+en/, " "))
48 buf.push($_.gsub!(/\/\*+/, " "))
52 buf.push($_.gsub!(/#if EXAMPLE_CODE/, "@code \n"))
57 buf.push($_.gsub!(/#endif/, "@endcode"))
66 buf.push($_.gsub!(/\*\//, " "))