10 buf.each do |i| print i end
17 gsub!("@seealso", "@par See Also:")
18 gsub!("@errors", "@par Errors:")
19 gsub!("@returns", "@par Return value:")
20 gsub!("@return", "@par Return value:")
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
50 # buf.push($_.gsub!(/#endif/, "@endcode"))
54 print $_.gsub!(/\/\*\s.*\*\//," ") # should be omiited in code
59 # when /^\/\*\s.*\*\// # /* comment */ type comment
61 # # should be included only in the example code
62 # ## We used to do the following substituion as a workaround of
64 # ## buf.push($_.gsub!(/\*\//, " ").gsub!(/\/\*/, "//"))
68 when /\/\*\s.*\*\// # code + /* comment */ type comment
70 # # should be included in the example code
71 # ## See the above comment.
72 # ## buf.push($_.gsub!(/\*\//, " ").gsub!(/\/\*/, "//"))
73 # buf.push($_) # should be included in the example code
78 print $_.gsub!(/\/\*\s.*\*\//," ") # should be omiited in code
82 when /\/\*{2,3}ja.*\*\// #japanese one liner
83 when /\/\*\*en.*\*\// #one liner
84 when /\/\*\*\*en.*\*\// #one liner
85 buf.push($_.gsub!(/\/\*+en/, " ").gsub!(/\*\//, " ")).push("\n")
86 when /\/\*\*\s.*\*\// #one liner
87 when /\/\*\*\*\s.*\*\// #one liner
88 buf.push($_.gsub!(/\/\*+/, " ").gsub!(/\*\//, " ")).push("\n")
90 when /\/\*{1,2}\s|\/\*{2,3}ja|\/\*\*en/ #this is not for En nor users
93 buf.push($_.gsub!(/\/\*+en/, " "))
96 buf.push($_.gsub!(/\/\*+/, " "))
100 #start example code lines
101 buf.push($_.gsub!(/#if EXAMPLE_CODE/, "\n \n @par Example:\n @code"))
106 buf.push($_.gsub!(/\*\//, " "))