We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
C# .NET 7
// 0 Console.WriteLine("qwerty".IndexOf((char)0, StringComparison.InvariantCultureIgnoreCase));
// -1 Console.WriteLine("qwerty".IndexOf((char)0));
// -1 Console.WriteLine("qwerty".IndexOf('z'));
// -1 Console.WriteLine("qwerty".IndexOf('z', StringComparison.InvariantCultureIgnoreCase));
The text was updated successfully, but these errors were encountered:
Tagging subscribers to this area: @dotnet/area-system-globalization See info in area-owners.md if you want to be subscribed.
area-System.Globalization
Sorry, something went wrong.
See #46569, #47145, #54951 and so on.
Should we link to some description of this behavior in the documentation of string.IndexOf? Currently I'm not seeing any.
string.IndexOf
@huoyaoyuan we have doc at https://learn.microsoft.com/en-us/dotnet/core/extensions/globalization-icu#stringindexof for this behavior but I think it will be a good idea add something to IndexOf. Are you interested in submitting PR for it?
No branches or pull requests
C# .NET 7
// 0
Console.WriteLine("qwerty".IndexOf((char)0, StringComparison.InvariantCultureIgnoreCase));
// -1
Console.WriteLine("qwerty".IndexOf((char)0));
// -1
Console.WriteLine("qwerty".IndexOf('z'));
// -1
Console.WriteLine("qwerty".IndexOf('z', StringComparison.InvariantCultureIgnoreCase));
The text was updated successfully, but these errors were encountered: