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
40 if doxy == 1 # empty line in doxygen comment
44 when /\/\*=\*\// #/*=*/ (flush)
48 when /\/\* @[{}] \*\// # /* comment */ type comment
53 when /^\/\*\s.*\*\// # /* comment */ type comment
55 # # should be included only in the example code
56 # ## We used to do the following substituion as a workaround of
58 # ## buf.push($_.gsub!(/\*\//, " ").gsub!(/\/\*/, "//"))
62 when /\/\*\s.*\*\// # code + /* comment */ type comment
64 # # should be included in the example code
65 # ## See the above comment.
66 # ## buf.push($_.gsub!(/\*\//, " ").gsub!(/\/\*/, "//"))
67 # buf.push($_) # should be included in the example code
72 print $_.gsub!(/\/\*\s.*\*\//," ") # should be omiited in code
76 when /\/\*{2,3}ja.*\*\// #japanese one liner
77 when /\/\*\*en.*\*\// #one liner
78 when /\/\*\*\*en.*\*\// #one liner
79 buf.push($_.gsub!(/\/\*+en/, " ").gsub!(/\*\//, " ")).push("\n")
80 when /\/\*\*\s.*\*\// #one liner
81 when /\/\*\*\*\s.*\*\// #one liner
82 buf.push($_.gsub!(/\/\*+/, " ").gsub!(/\*\//, " ")).push("\n")
84 when /\/\*{1,2}\s|\/\*{2,3}ja|\/\*\*en/ #this is not for En nor users
87 buf.push($_.gsub!(/\/\*+en/, " "))
90 buf.push($_.gsub!(/\/\*+/, " "))
94 #start example code lines
95 buf.push($_.gsub!(/#if EXAMPLE_CODE/, "\n \n @par Example:\n @code"))
100 buf.push($_.gsub!(/\*\//, " "))