summaryrefslogtreecommitdiff
path: root/src/mongo/base/parse_number_test.cpp
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-40160 Remove `if_constexpr.h` header.ADAM David Alan Martin2019-07-271-1/+0
| | | | | | | This header circumvented bad formatting which `clang-format-3.8` imparted to `if constexpr`. Now `clang-format-7.0.1` imparts a reasonable format to `if constexpr` so this header is not needed anymore.
* SERVER-41772 Apply clang-format 7.0.1 to the codebaseclang-format-7.0.12019-07-271-5/+8
|
* SERVER-7143 replace standard library number parsing with custom NumberParserNathan Brown2019-06-271-198/+396
|
* SERVER-40476 remove mongoutils::strBilly Donahue2019-04-091-4/+3
| | | | | | Rename utils/mongoutils/str.h => utils/str.h Rename namespace mongoutils::str => str Rename mongo::strcasecmp => str::caseInsensitiveCompare.
* SERVER-39560 - remove leading blank line on all C++ filesBilly Donahue2019-02-131-1/+0
| | | | | | Remove leading comments that are just stating the filename. Move any file-level comments below the copyright banner. Remove leading blank lines.
* SERVER-37651 Update header files with new licenseRamon Fernandez2018-10-221-14/+16
|
* SERVER-31227 clean up and optimize parseNumberFromStringMathias Stearn2017-09-291-1/+48
|
* SERVER-23420 Remove use of GNU extensions in parse_number_test.cppMark Benvenuto2016-12-271-3/+3
|
* SERVER-24651 Add and use string data literalsJason Carey2016-06-171-3/+1
| | | | Replace StringData("foo", StringData::LiteralTag()) with "foo"_sd
* SERVER-23971 Clang-Format codeMark Benvenuto2016-05-281-1/+1
|
* SERVER-18928: replace "mongo/platform/cstdint.h" with <cstdint>Kang In Cheol2015-06-291-1/+1
| | | | | | Signed-off-by: Ramon Fernandez <ramon.fernandez@mongodb.com> Closes #988
* SERVER-18579: Clang-Format - reformat code, no comment reflowMark Benvenuto2015-06-201-235/+225
|
* SERVER-17552 Use correct OS detection macros, rather than our ownAndrew Morrow2015-03-111-1/+1
|
* SERVER-8944 Use C++11 standard library functions for double NaN and Infinity ↵Siyuan Zhou2015-02-051-4/+4
| | | | detection
* SERVER-13256 Remove pch.hAndrew Morrow2015-01-151-3/+0
|
* SERVER-13256 Prohibit new uses of pch.hAndrew Morrow2015-01-051-0/+3
|
* SERVER-14110 Take responsibility for numerical conversions away from boost ↵Shaun Verch2014-06-021-0/+1
| | | | program options
* SERVER-8886 Final set of license exceptions for OpenSSLIan Whalen2013-12-101-0/+12
|
* SERVER-8936 use proper macro name for SolarisEric Milkie2013-03-141-1/+1
|
* SERVER-8936 Do not test parsing hexadecimal floating point on Solaris; not ↵Andy Schwerin2013-03-141-2/+2
| | | | supported.
* SERVER-8936 Improved Windows support of parseNumberFromString<double>().Andy Schwerin2013-03-121-3/+11
| | | | | | | | | Separately parse +/-infinity and nan, which Windows strtod does not handle. When testing on Windows, do not test parsing hexadecimal floating point representations, which Windows strtod does not support. Reenable the parse_number_test.
* SERVER-8936 Fix parse_number_test on RHEL5 32-bit and Windows.Andy Schwerin2013-03-111-5/+6
| | | | | | For RHEL5 32-bit, use a number much closer to 0 for underflow testing. For 32-bit Windows, switch to mongo::isNaN and mongo::isInf.
* Implement parseNumberFromStringWithBase<double>().Andy Schwerin2013-03-111-0/+64
|
* Fix handling of short, invalid inputs to parseNumberFromString() and its ilk.Andy Schwerin2013-01-091-3/+27
| | | | | | There were two notable bugs. The strings "+" and "-" were parsing successfully as the number 0. The strings "0x" and "0X" were also parsing successfully as the number 0, when they should be an error.
* Implement parseNumberFromString directly, rather than through strtol, and ↵Andy Schwerin2012-12-071-4/+56
| | | | support StringData.
* Move ASSERT_OK macro into mongo/unittest/unittest.h.Andy Schwerin2012-11-061-2/+0
| | | | Previously, every test file that wanted it was defining it.
* Revert "Support templated unittest test suites."Mathias Stearn2012-10-011-24/+46
| | | | This reverts commit b897ff2d1d6c32e43f4efbcbd4956b645bd3eb8b.
* Support templated unittest test suites.Mathias Stearn2012-09-301-46/+24
|
* parseNumberFromString* functionsAndy Schwerin2012-09-251-0/+152
A uniform interface for parsing numbers out of strings, with implementations for the standard integer types. Extension to double should be straightforward. Tests included.