Skip to content
This repository was archived by the owner on Nov 1, 2020. It is now read-only.

Port IndexOfAny 2 & 3 char special case - #4391

Merged
jkotas merged 2 commits into
dotnet:masterfrom
bbowyersmyth:String_IndexOfAny
Aug 26, 2017
Merged

Port IndexOfAny 2 & 3 char special case#4391
jkotas merged 2 commits into
dotnet:masterfrom
bbowyersmyth:String_IndexOfAny

Conversation

@bbowyersmyth

Copy link
Copy Markdown
Contributor

char c = *pCh;

if (c == value1 || c == value2)
goto ReturnIndex;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could you please incorporate dotnet/coreclr#13505 to this change as well?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oh missed that one getting merged. Done

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Note String.Comparison.cs is different in RT and that code port was not needed.

@jkotas
jkotas merged commit f954fb1 into dotnet:master Aug 26, 2017
@jkotas

jkotas commented Aug 26, 2017

Copy link
Copy Markdown
Member

Thanks!

@bbowyersmyth
bbowyersmyth deleted the String_IndexOfAny branch August 26, 2017 21:59
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.

3 participants