Lines Matching defs:line
69 string line;
72 line = input[linenum];
74 if (terminator.empty() && line.empty()) { linenum--; break; }
76 size_t const epos = line.find(terminator);
78 out.push_back(line);
81 out.push_back(line);
88 /* print line with LZ4LIB_API removed and C++ comments not bold */
89 void print_line(stringstream &sout, string line)
93 if (line.substr(0,11) == "LZ4LIB_API ") line = line.substr(11);
94 if (line.substr(0,12) == "LZ4FLIB_API ") line = line.substr(12);
95 spos = line.find("/*");
96 epos = line.find("*/");
98 sout << line.substr(0, spos);
99 sout << "</b>" << line.substr(spos) << "<b>" << '\n';
101 sout << line << '\n';
110 string line, version;
135 while (getline(istream, line)) {
136 input.push_back(line);
140 line = input[linenum];
143 if (line.substr(0,7) == "typedef" && line.find("{")!=string::npos) {
154 if ((line.find("/**<")!=string::npos || line.find("/*!<")!=string::npos)
155 && line.find("*/")!=string::npos) {
157 print_line(sout, line);
162 spos = line.find("/**=");
164 spos = line.find("/*!");
166 spos = line.find("/**");
168 spos = line.find("/*-");
170 spos = line.find("/*=");
173 exclam = line[spos+2];
178 if (!comments.empty()) comments[0] = line.substr(spos+3);
188 while (!comments.empty() && comments[comments.size()-1].empty()) comments.pop_back(); // remove empty line at the end
189 while (!comments.empty() && comments[0].empty()) comments.erase(comments.begin()); // remove empty line at the start
193 if (!comments.empty()) comments.erase(comments.begin()); /* remove first line like "LZ4_XXX() :" */
206 } else if (exclam == '=') { /* comments of type / * = and / * * = mean: use a <H3> header and show also all functions until first empty line */
218 } else { /* comments of type / * * and / * - mean: this is a comment; use a <H2> header for the first line */