-
Notifications
You must be signed in to change notification settings - Fork 5k
Expose IUtf8SpanParsable and implement it on the primitive numeric types #86875
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 all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
f1d305b
Expose IUtf8SpanParsable
tannergooding 9b03507
Have INumberBase implement IUtf8SpanParsable
tannergooding ca67504
Deduplicate some floating-point parsing logic
tannergooding c1f35f3
Refactoring the primitive parsing logic to support UTF-8
tannergooding fe438ca
Updating the primitive numeric types to include UTF-8 parsing support
tannergooding 01066c8
Adding tests covering the new UTF-8 parsing support
tannergooding ba28bab
Ensure that tests don't try to capture a span in lambda
tannergooding 0fdcd4e
Ensure that MatchChars does the right thing
tannergooding 9e1fe3e
Account for the switch from string to ROSpan<TChar> for currSymbol
tannergooding 6c3dfda
Ensure EqualsIgnoreCaseUtf8_Scalar handles the remaining elements cor…
tannergooding 0fc41ca
Merge remote-tracking branch 'dotnet/main' into utf8-parsing
tannergooding 249a2a2
Merge remote-tracking branch 'dotnet/main' into utf8-parsing
tannergooding 5056ac8
Allow alloc-free conversion for the UTF8 parsing fallback paths
tannergooding cb9bef0
Remove unnecessary attributes and ensure trailing elements are correc…
tannergooding e5582f3
Merge remote-tracking branch 'dotnet/main' into utf8-parsing
tannergooding 654888e
Merge remote-tracking branch 'dotnet/main' into utf8-parsing
tannergooding e611907
Fix the handling of UTF8 as per the feedback
tannergooding e944130
Merge remote-tracking branch 'dotnet/main' into utf8-parsing
tannergooding c7676cd
Fix a slightly broken merge
tannergooding 5554436
Ensure the lengths are properly checked on the ASCII path
tannergooding c5ef2b2
Ensure that length is defined for 32-bit
tannergooding 0ba5476
Merge remote-tracking branch 'dotnet/main' into utf8-parsing
tannergooding ab271db
Responding to PR feedback and allow invalid sequences to self match
tannergooding a78b75b
Fixing a copy/paste error
tannergooding b535e5c
Fixing a build failure due to not assigning the out parameter
tannergooding 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
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
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.
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.