You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem here is Contains does an ordinal comparison, whereas IndexOf does a linguistic comparison. In this case, the second character (U+02BB, MODIFIER LETTER TURNED COMMA) modifies the previous letter such that the pair is treated differently from the raw letter a.
This happens with other characters as well, for example U+0303 (COMBINING TILDE).
var tmp = "aʻ";
Console.WriteLine( tmp.Contains("a") ); // True
Console.WriteLine( tmp.IndexOf("a") ); // -1
The text was updated successfully, but these errors were encountered: