9 buf.each do |i| print i end
16 gsub!("@seealso", "@par See Also:")
17 gsub!("@errors", "@par Errors:")
18 gsub!("@returns", "@par Return value:")
19 gsub!("@return", "@par Return value:")
20 #let doxygen find functions
21 gsub!(/[a-zA-Z_]\s\(\)/) {|m| m.delete!(" ")}
22 #make variables in function descriptions shown in bold
23 gsub!(/\$[A-Z_]+/) {|m| m.delete!("$").reverse.downcase!.concat(" b@").reverse}
34 when /^\/\*\s.*\*\// # /* comment */ type comment
36 buf.push($_.gsub!(/\*\//, " ").gsub!(/\/\*/, "//")) # should be included only in the example code
39 when /\/\*\s.*\*\// # code + /* comment */ type comment
41 buf.push($_.gsub!(/\*\//, " ").gsub!(/\/\*/, "//")) # should be included in the example code
46 print $_.gsub!(/\/\*\s.*\*\//," ") # should be omiited in code
50 when /\/\*{2,3}ja.*\*\// #japanese one liner
51 when /\/\*\*en.*\*\// #one liner
52 when /\/\*\*\*en.*\*\// #one liner
53 buf.push($_.gsub!(/\/\*+en/, " ").gsub!(/\*\//, " ")).push("\n")
54 when /\/\*\*\s.*\*\// #one liner
55 when /\/\*\*\*\s.*\*\// #one liner
56 buf.push($_.gsub!(/\/\*+/, " ").gsub!(/\*\//, " ")).push("\n")
58 when /\/\*{1,2}\s|\/\*{2,3}ja|\/\*\*en/ #this is not for En nor users
61 buf.push($_.gsub!(/\/\*+en/, " "))
64 buf.push($_.gsub!(/\/\*+/, " "))
68 buf.push($_.gsub!(/#if EXAMPLE_CODE/, "\n \n @par Example:\n @code"))
73 buf.push($_.gsub!(/#endif/, "@endcode"))
82 buf.push($_.gsub!(/\*\//, " "))