I am trying to find the index of a substring in a string that matches another string under a specific culture (provided from System.CultureInfo).
For example, the string "ass" corresponds to the substring "aß" in "straße" under German culture.
I can find the match start index using
culture.CompareInfo.IndexOf(value, substring);
but without resorting to brute force, is there an easy way to determine that 2 characters were matched, not 3?
Oliver hallam
source share