-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Complex Rune enumeration over spans of UTF-16 and UTF-8 text #111170
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
Conversation
- Modified constructor to be `internal` and updated property assignments. - Enhanced `Equals` and `GetHashCode` methods for readability and performance. - Improved XML documentation for clarity and consistency with Unicode terminology. - Updated test methods to reflect changes in `RunePosition`, removing unnecessary assertions and adding new test cases. - Ensured enumerators correctly handle current position in Unicode data.
Note regarding the
|
1 similar comment
Note regarding the
|
src/libraries/System.Private.CoreLib/src/System/Text/RunePosition.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Text/RunePosition.cs
Outdated
Show resolved
Hide resolved
…tf16Enumerator` and `Utf8Enumerator` structures.
@GrabYourPitchforks, can you please review this? Thanks. |
@AlexRadch Looks we need to expose the APIs from runtime ref https://github.com/dotnet/runtime/blob/8aa695c0d7b51296ae169dec8ab63a30e129b391/src/libraries/System.Runtime/ref/System.Runtime.cs#L15651. Why we exposing it from System.Memory? |
src/libraries/System.Memory/tests/Span/EnumerateRunePositions.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Memory/tests/Span/EnumerateRunePositions.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Memory/tests/Span/EnumerateRunePositions.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Memory/tests/Span/EnumerateRunePositions.cs
Outdated
Show resolved
Hide resolved
/ba-g the failure looks more infrastructure, for sure is not related to the changes here. |
Close #28507