Lines Matching full:comments
29 /* trim C++ style comments */
64 /* print line with ZSTDLIB_API removed and C++ comments not bold */
84 vector<string> input, lines, comments, chapters; in main() local
128 …/* comments of type /**< and /*!< are detected and only function declaration is highlighted (bold)… in main()
151 comments = get_lines(input, linenum, "*/"); in main()
152 if (!comments.empty()) comments[0] = line.substr(spos+3); in main()
153 …if (!comments.empty()) comments[comments.size()-1] = comments[comments.size()-1].substr(0, comment… in main()
154 for (l=0; l<comments.size(); l++) { in main()
155 if (comments[l].find(" *")==0) comments[l] = comments[l].substr(2); in main()
156 else if (comments[l].find(" *")==0) comments[l] = comments[l].substr(3); in main()
157 trim(comments[l], "*-="); in main()
159 …while (!comments.empty() && comments[comments.size()-1].empty()) comments.pop_back(); // remove em… in main()
160 …while (!comments.empty() && comments[0].empty()) comments.erase(comments.begin()); // remove empty… in main()
162 … /* comments of type /*! mean: this is a function declaration; switch comments with declarations */ in main()
164 …if (!comments.empty()) comments.erase(comments.begin()); /* remove first line like "ZSTD_XXX() :" … in main()
178 for (l=0; l<comments.size(); l++) { in main()
179 print_line(sout, comments[l]); in main()
182 …} else if (exclam == '=') { /* comments of type /*= and /**= mean: use a <H3> header and show also… in main()
183 trim(comments[0], " "); in main()
184 sout << "<h3>" << comments[0] << "</h3><pre>"; in main()
185 for (l=1; l<comments.size(); l++) { in main()
186 print_line(sout, comments[l]); in main()
194 …} else { /* comments of type /** and /*- mean: this is a comment; use a <H2> header for the first … in main()
195 if (comments.empty()) continue; in main()
197 trim(comments[0], " "); in main()
198 sout << "<a name=\"Chapter" << chapter << "\"></a><h2>" << comments[0] << "</h2><pre>"; in main()
199 chapters.push_back(comments[0]); in main()
202 for (l=1; l<comments.size(); l++) { in main()
203 print_line(sout, comments[l]); in main()
205 if (comments.size() > 1) in main()