MCPcopy Create free account
hub / github.com/KDE/labplot / getFunction1

Function getFunction1

tests/backend/gsl/ExpressionParserTest.cpp:8–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6
7namespace {
8func_t1 getFunction1(const QString& s) {
9 const QString functionName(s);
10 for (int i = 0; i < _number_functions; i++) {
11 if (functionName == QLatin1String(_functions[i].name)) {
12 if (_functions[i].argc == 1)
13 return std::get<func_t1>(_functions[i].fnct);
14 }
15 }
16 return nullptr;
17}
18
19func_t2 getFunction2(const QString& s) {
20 const QString functionName(s);

Callers 3

testnotFunctionMethod · 0.85
testSpecialFunctionsMethod · 0.85
testLog2Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected