KEMBAR78
Use IndexOfAnyValues in Xml by MihaZupan · Pull Request #78664 · dotnet/runtime · GitHub
Skip to content

Conversation

@MihaZupan
Copy link
Member

Contributes to #78204

@MihaZupan MihaZupan added this to the 8.0.0 milestone Nov 21, 2022
@MihaZupan MihaZupan marked this pull request as ready for review November 21, 2022 23:20
@ghost ghost assigned MihaZupan Nov 21, 2022
@ghost
Copy link

ghost commented Nov 21, 2022

Tagging subscribers to this area: @dotnet/area-system-xml
See info in area-owners.md if you want to be subscribed.

Issue Details

Contributes to #78204

Author: MihaZupan
Assignees: -
Labels:

area-System.Xml

Milestone: 8.0.0


// Matches IsWhitespace below
private static readonly IndexOfAnyValues<char> s_whitespaceChars = IndexOfAnyValues.Create(" \t\r\n");
private static readonly IndexOfAnyValues<byte> s_whitespaceBytes = IndexOfAnyValues.Create(" \t\r\n"u8);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IndexOfAnyValues.Create and u8 go nicely together.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants