• Home
  • Raw
  • Download

Lines Matching refs:comments

111     vector<string> input, lines, comments, chapters;  in main()  local
178 comments = get_lines(input, linenum, "*/"); in main()
179 if (!comments.empty()) comments[0] = line.substr(spos+3); in main()
180 …if (!comments.empty()) comments[comments.size()-1] = comments[comments.size()-1].substr(0, comment… in main()
181 for (l=0; l<comments.size(); l++) { in main()
182 if (comments[l].find(" *")==0) comments[l] = comments[l].substr(2); in main()
183 else if (comments[l].find(" *")==0) comments[l] = comments[l].substr(3); in main()
184 trim(comments[l], "*-="); in main()
186 …while (!comments.empty() && comments[comments.size()-1].empty()) comments.pop_back(); // remove em… in main()
187 …while (!comments.empty() && comments[0].empty()) comments.erase(comments.begin()); // remove empty… in main()
191 …if (!comments.empty()) comments.erase(comments.begin()); /* remove first line like "LZ4_XXX() :" */ in main()
201 for (l=0; l<comments.size(); l++) { in main()
202 print_line(sout, comments[l]); in main()
206 trim(comments[0], " "); in main()
207 sout << "<h3>" << comments[0] << "</h3><pre>"; in main()
208 for (l=1; l<comments.size(); l++) { in main()
209 print_line(sout, comments[l]); in main()
218 if (comments.empty()) continue; in main()
220 trim(comments[0], " "); in main()
221 sout << "<a name=\"Chapter" << chapter << "\"></a><h2>" << comments[0] << "</h2><pre>"; in main()
222 chapters.push_back(comments[0]); in main()
225 for (l=1; l<comments.size(); l++) { in main()
226 print_line(sout, comments[l]); in main()
228 if (comments.size() > 1) in main()