| 242 | } |
| 243 | |
| 244 | QString ExpressionParser::functionDescription(const QString& function) { |
| 245 | for (int index = 0; index < _number_functions; index++) { |
| 246 | if (function == QLatin1String(_functions[index].name)) |
| 247 | return _functions[index].description(); |
| 248 | } |
| 249 | for (int index = 0; index < _number_specialfunctions; index++) { |
| 250 | if (function == QLatin1String(_special_functions[index].name)) |
| 251 | return _special_functions[index].description(); |
| 252 | } |
| 253 | return QStringLiteral(""); |
| 254 | } |
| 255 | QString ExpressionParser::constantDescription(const QString& constant) { |
| 256 | for (int index = 0; index < _number_constants; index++) { |
| 257 | if (constant == QLatin1String(_constants[index].name)) |
no test coverage detected