| Index: lib/Parser_cpp.template
|
| diff --git a/lib/Parser_cpp.template b/lib/Parser_cpp.template
|
| index 4bf6bebc467eb4b0f5fdcc59f40e3d7d88f83b8a..ef180a1ce8ea110dd64b831b78198d32d88935fd 100644
|
| --- a/lib/Parser_cpp.template
|
| +++ b/lib/Parser_cpp.template
|
| @@ -52,18 +52,13 @@ double charactersToDouble(const uint16_t* characters, size_t length, bool* ok)
|
| }
|
| buffer.push_back('\0');
|
| char* endptr;
|
| - double result = std::strtod(buffer.data(), &endptr);
|
| - *ok = !(*endptr);
|
| - return result;
|
| + return StringUtil::toDouble(buffer.data(), length, ok);
|
| }
|
|
|
| double charactersToDouble(const uint8_t* characters, size_t length, bool* ok)
|
| {
|
| std::string buffer(reinterpret_cast<const char*>(characters), length);
|
| - char* endptr;
|
| - double result = std::strtod(buffer.data(), &endptr);
|
| - *ok = !(*endptr);
|
| - return result;
|
| + return StringUtil::toDouble(buffer.data(), length, ok);
|
| }
|
|
|
| template<typename Char>
|
|
|