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