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 /^\/\*\s.*\*\// # /* comment */ type comment
50 # # should be included only in the example code
51 # ## We used to do the following substituion as a workaround of
53 # ## buf.push($_.gsub!(/\*\//, " ").gsub!(/\/\*/, "//"))
57 when /\/\*\s.*\*\// # code + /* comment */ type comment
59 # # should be included in the example code
60 # ## See the above comment.
61 # ## buf.push($_.gsub!(/\*\//, " ").gsub!(/\/\*/, "//"))
62 # buf.push($_) # should be included in the example code
67 print $_.gsub!(/\/\*\s.*\*\//," ") # should be omiited in code
71 when /\/\*{2,3}ja.*\*\// #japanese one liner
72 when /\/\*\*en.*\*\// #one liner
73 when /\/\*\*\*en.*\*\// #one liner
74 buf.push($_.gsub!(/\/\*+en/, " ").gsub!(/\*\//, " ")).push("\n")
75 when /\/\*\*\s.*\*\// #one liner
76 when /\/\*\*\*\s.*\*\// #one liner
77 buf.push($_.gsub!(/\/\*+/, " ").gsub!(/\*\//, " ")).push("\n")
79 when /\/\*{1,2}\s|\/\*{2,3}ja|\/\*\*en/ #this is not for En nor users
82 buf.push($_.gsub!(/\/\*+en/, " "))
85 buf.push($_.gsub!(/\/\*+/, " "))
89 #start example code lines
90 buf.push($_.gsub!(/#if EXAMPLE_CODE/, "\n \n @par Example:\n @code"))
95 buf.push($_.gsub!(/\*\//, " "))