Handle the remaining known issues (modulo snan) with the double/single parsing logic...
authorTanner Gooding <tagoo@outlook.com>
Mon, 26 Nov 2018 19:01:04 +0000 (11:01 -0800)
committerGitHub <noreply@github.com>
Mon, 26 Nov 2018 19:01:04 +0000 (11:01 -0800)
commit1ebc1a9deb24bdb82a0a28afb2f6e853bfa0bf8f
treecccb156980d011f431bde98079577b2dba121610
parenta1e65761b6cd64b391c2f0ee4da1b219f93c5d33
Handle the remaining known issues (modulo snan) with the double/single parsing logic (#21036)

* Fixing the double/single parser to return negative zero for `-0`

* Updating the Utf8Parser to allow exponents of arbitrary length

* Updating the double/single parser to support case-insensitive and signed infinity/nan

* Ensure TryParseAsSpecialFloatingPoint handles the case where we have an empty source

* Fixing the number parser to allow `-0` for decimal and to not parse '++infini'
src/System.Private.CoreLib/shared/System/Buffers/Text/Utf8Parser/Utf8Parser.Decimal.cs
src/System.Private.CoreLib/shared/System/Buffers/Text/Utf8Parser/Utf8Parser.Float.cs
src/System.Private.CoreLib/shared/System/Buffers/Text/Utf8Parser/Utf8Parser.Number.cs
src/System.Private.CoreLib/shared/System/Number.Parsing.cs