private static int CurrentCultureIndexOf( IDecodedTextLine decodedText, IDecodedTextLine decodedPattern, int startIndex, int count, CompareOptions options) { return CultureInfo.CurrentCulture.CompareInfo.IndexOf( decodedText.Value, decodedPattern.Value, startIndex, count, options); }
private static bool CurrentCultureEquals( IDecodedTextLine decodedA, IDecodedTextLine decodedB, CompareOptions options) { return 0 == CultureInfo.CurrentCulture.CompareInfo.Compare(decodedA.Value, decodedB.Value, options); }