| 87 | upper(upper) {} |
| 88 | |
| 89 | ConstantValue eval(EvalContext& context, const Args& args, SourceRange, |
| 90 | const CallExpression::SystemCallInfo&) const final { |
| 91 | auto val = args[0]->eval(context); |
| 92 | if (!val) |
| 93 | return nullptr; |
| 94 | |
| 95 | std::string& str = val.str(); |
| 96 | if (upper) |
| 97 | strToUpper(str); |
| 98 | else |
| 99 | strToLower(str); |
| 100 | return val; |
| 101 | } |
| 102 | |
| 103 | private: |
| 104 | bool upper; |
nothing calls this directly
no test coverage detected