-
Notifications
You must be signed in to change notification settings - Fork 2
Add lossless Decimal encoding and decoding #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 21 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
a4c349d
Add lossless Decimal encoding and decoding
mattt bd1c254
Implement precise decoding for YYJSONSerialization
mattt 358ef97
Implement precise decoding for YYJSONValue
mattt af56d8b
Skip String allocation when decoding raw numbers
mattt 99cf19d
Add numberDecodingStrategy for opting into native-number decoding
mattt 5bb637c
Harden raw integer parsing in YYJSONDecoder
mattt 45ae9e1
Parse Decimal values with a POSIX locale
mattt 02bd550
Format encoded Decimal values with a POSIX locale
mattt 659e546
Force-unwrap expected Decimal values in decoder tests
mattt 5025375
Drop writer dependency from yyNumberText
mattt 7d70bda
Factor duplicated decodeDecimal into shared helper
mattt a06585e
Accept JSON5 hex literals in raw-number parsing
mattt 1516b86
Format Decimal test fixtures with a POSIX locale
mattt 25c156c
Sample roundtripDecimalPreservesPrecision instead of looping 10k
mattt 191d564
Align NumberDecodingStrategy.fast docs with actual behavior
mattt 9a5cdea
Import libc explicitly for strtoll/strtod/errno
mattt f700971
Reject Decimal NaN when decoding
mattt 6eaa129
Reformat doc comments with semantic line breaks
mattt 64baab6
Import Musl libc for the static Linux SDK
mattt 3f869e6
Copy-edit and reflow doc comments with semantic line breaks
mattt ac812f6
Consolidate POSIX locale into a shared declaration
mattt e612b99
Reuse yyRawText in yyNumberText
mattt 811bb31
Clarify NumberDecodingStrategy.fast precision note
mattt 173ef7f
Update README
mattt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.