-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Spanify some Utf8String
and Utf8StringBuilder
use
#102101
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
jkotas
merged 26 commits into
dotnet:main
from
PaulusParssinen:spanify-internal-text-utf8string
May 14, 2024
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
56490e8
Address TODOs
PaulusParssinen ea1e855
Make Utf8String readonly
PaulusParssinen bc4e50e
Make Utf8StringBuilder.Append do two Encoding.UTF8 calls instead of many
PaulusParssinen ca24552
Use UTF8 literals for the appended constant strings in ILC
PaulusParssinen 8d3e0db
Use UTF8 literals for the appended constant strings in R2R
PaulusParssinen 7431393
Use pattern match in Utf8String.Equals(object)
PaulusParssinen bd9e6ef
Use SequenceEquals in Utf8String.Equals(Utf8String)
PaulusParssinen cb0eb90
Use CommonPrefixLength in Utf8String.Compare(Utf8String, Utf8String)
PaulusParssinen 2ed3a64
Remove unused Utf8StringBuilder.LastCharBoundary
PaulusParssinen ace1494
Remove Utf8StringBuilder.UnderlyingArray
PaulusParssinen 0002c62
Revert "Remove Utf8StringBuilder.UnderlyingArray"
PaulusParssinen fe86998
Use SequenceCompareTo
PaulusParssinen 51b63e3
UnderlyingArray -> AsSpan()
PaulusParssinen bafd05f
Only return filled-portion of the buffer in Utf8StringBuilder.AsSpan
PaulusParssinen 77a600d
Write null-terminator for the augmentationString.
PaulusParssinen 2e050a3
Utf8StringBuilder.Append(char) -> Utf8StringBuilder.Append(byte)
PaulusParssinen 5dd1cbf
Remove unnecessary cast
PaulusParssinen 19106c7
Update src/coreclr/tools/Common/Internal/Text/Utf8StringBuilder.cs
jkotas 00d4e54
Update src/coreclr/tools/Common/Internal/Text/Utf8StringBuilder.cs
jkotas 8a97513
Use UTF8 literals for single characters too
PaulusParssinen bb4477b
Revert "Use UTF8 literals for single characters too"
PaulusParssinen 7838413
Revert "Remove unnecessary cast"
PaulusParssinen 1f80778
Revert "Utf8StringBuilder.Append(char) -> Utf8StringBuilder.Append(by…
PaulusParssinen b7c0fdb
Add Ascii.IsValid assert to Utf8StringBuilder.Append
PaulusParssinen ae917bc
Merge branch 'main' into spanify-internal-text-utf8string
jkotas b007b64
Merge branch 'main' into spanify-internal-text-utf8string
MichalStrehovsky 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
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
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
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.