• Home
  • Raw
  • Download

Lines Matching full:comments

54 /* trim C++ style comments */
89 /* print line with LZ4LIB_API removed and C++ comments not bold */
109 vector<string> input, lines, comments, chapters; in main() local
153 …/* comments of type /**< and /*!< are detected and only function declaration is highlighted (bold)… in main()
161 …/* comments of type /*= and /**= mean: use a <H3> header and show also all functions until first e… in main()
184 comments = get_lines(input, linenum, "*/"); in main()
185 if (!comments.empty()) comments[0] = line.substr(spos+3); in main()
186 …if (!comments.empty()) comments[comments.size()-1] = comments[comments.size()-1].substr(0, comment… in main()
187 for (l=0; l<comments.size(); l++) { in main()
188 if (comments[l].find(" *")==0) comments[l] = comments[l].substr(2); in main()
189 else if (comments[l].find(" *")==0) comments[l] = comments[l].substr(3); in main()
190 trim(comments[l], "*-"); in main()
192 …while (!comments.empty() && comments[comments.size()-1].empty()) comments.pop_back(); // remove em… in main()
193 …while (!comments.empty() && comments[0].empty()) comments.erase(comments.begin()); // remove empty… in main()
195 … /* comments of type /*! mean: this is a function declaration; switch comments with declarations */ in main()
197 …if (!comments.empty()) comments.erase(comments.begin()); /* remove first line like "LZ4_XXX() :" */ in main()
207 for (l=0; l<comments.size(); l++) { in main()
208 print_line(sout, comments[l]); in main()
211 …} else { /* comments of type /** and /*- mean: this is a comment; use a <H2> header for the first … in main()
212 if (comments.empty()) continue; in main()
214 trim(comments[0], " "); in main()
215 sout << "<a name=\"Chapter" << chapter << "\"></a><h2>" << comments[0] << "</h2><pre>"; in main()
216 chapters.push_back(comments[0]); in main()
219 for (l=1; l<comments.size(); l++) { in main()
220 print_line(sout, comments[l]); in main()
222 if (comments.size() > 1) in main()