MCPcopy Create free account
hub / github.com/FreeFem/FreeFem-sources / getClass

Function getClass

etc/timer/parser.cpp:217–228  ·  view source on GitHub ↗

! * \brief Returns class for html format * \param line Line containing the flag * \return Html class */

Source from the content-addressed store, hash-verified

215 * \return Html class
216 */
217string getClass (const string &line) {
218 string flag = getFlag(line);
219 if (flag == timeElapsed)
220 return "time";
221 if (flag == typeDefinition)
222 return "type";
223 if (flag == parameterDefinition)
224 return "parameter";
225 if (flag == functionDefinition)
226 return "function";
227 return "";
228}
229
230/*!
231 * \brief Returns a specific number of indentations

Callers 2

addLogToHtmlFunction · 0.85
addTimeDivFunction · 0.85

Calls 1

getFlagFunction · 0.85

Tested by

no test coverage detected