diff options
author | Nathan Brown <nathan.brown@10gen.com> | 2019-06-06 10:39:58 -0400 |
---|---|---|
committer | Nathan Brown <nathan.brown@10gen.com> | 2019-06-27 10:04:18 -0400 |
commit | 0fefcf84347a2bcc4961baec0295b9d04047d86f (patch) | |
tree | ce86921e5b14ee83a00400f4f4e8712093505cb8 /src/mongo/platform/decimal128.h | |
parent | a700238800aa2bf1e10c255337ec35373ffd2667 (diff) | |
download | mongo-0fefcf84347a2bcc4961baec0295b9d04047d86f.tar.gz |
SERVER-7143 replace standard library number parsing with custom NumberParser
Diffstat (limited to 'src/mongo/platform/decimal128.h')
-rw-r--r-- | src/mongo/platform/decimal128.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mongo/platform/decimal128.h b/src/mongo/platform/decimal128.h index 7b96d8e2611..052c7a020d2 100644 --- a/src/mongo/platform/decimal128.h +++ b/src/mongo/platform/decimal128.h @@ -198,11 +198,14 @@ public: * "200E9999999999" --> +Inf * "-200E9999999999" --> -Inf */ - explicit Decimal128(std::string stringValue, RoundingMode roundMode = kRoundTiesToEven); + explicit Decimal128(std::string stringValue, + RoundingMode roundMode = kRoundTiesToEven, + size_t* charsConsumed = nullptr); Decimal128(std::string stringValue, std::uint32_t* signalingFlag, - RoundingMode roundMode = kRoundTiesToEven); + RoundingMode roundMode = kRoundTiesToEven, + size_t* charsConsumed = nullptr); /** * This function gets the inner Value struct storing a Decimal128 value. |