Lines Matching refs:comments
109 vector<string> input, lines, comments, chapters; in main() local
177 comments = get_lines(input, linenum, "*/"); in main()
178 if (!comments.empty()) comments[0] = line.substr(spos+3); in main()
179 if (!comments.empty()) in main()
180 …comments[comments.size()-1] = comments[comments.size()-1].substr(0, comments[comments.size()-1].fi… in main()
181 for (l=0; l<comments.size(); l++) { in main()
182 if (comments[l].compare(0, 2, " *") == 0) in main()
183 comments[l] = comments[l].substr(2); in main()
184 else if (comments[l].compare(0, 3, " *") == 0) in main()
185 comments[l] = comments[l].substr(3); in main()
186 trim(comments[l], "*-="); in main()
188 …while (!comments.empty() && comments[comments.size()-1].empty()) comments.pop_back(); // remove em… in main()
189 …while (!comments.empty() && comments[0].empty()) comments.erase(comments.begin()); // remove empty… in main()
193 …if (!comments.empty()) comments.erase(comments.begin()); /* remove first line like "LZ4_XXX() :" */ in main()
202 for (l=0; l<comments.size(); l++) { in main()
203 print_line(sout, comments[l]); in main()
207 trim(comments[0], " "); in main()
208 sout << "<h3>" << comments[0] << "</h3><pre>"; in main()
209 for (l=1; l<comments.size(); l++) { in main()
210 print_line(sout, comments[l]); in main()
219 if (comments.empty()) continue; in main()
221 trim(comments[0], " "); in main()
222 sout << "<a name=\"Chapter" << chapter << "\"></a><h2>" << comments[0] << "</h2><pre>"; in main()
223 chapters.push_back(comments[0]); in main()
226 for (l=1; l<comments.size(); l++) { in main()
227 print_line(sout, comments[l]); in main()
229 if (comments.size() > 1) in main()