| 202 | builtins.realType, true) {} |
| 203 | |
| 204 | ConstantValue eval(EvalContext& context, const Args& args, SourceRange, |
| 205 | const CallExpression::SystemCallInfo&) const final { |
| 206 | auto cv = args[0]->eval(context); |
| 207 | if (!cv) |
| 208 | return nullptr; |
| 209 | |
| 210 | std::string str = cv.str(); |
| 211 | std::erase(str, '_'); |
| 212 | |
| 213 | double result = strToDouble(str).value_or(0.0); |
| 214 | return real_t(result); |
| 215 | } |
| 216 | }; |
| 217 | |
| 218 | class StringItoAMethod : public SimpleSystemSubroutine { |
nothing calls this directly
no test coverage detected