System.Globalization.TextInfo.CompareOrdinalIgnoreCaseEx C# (CSharp) Method

CompareOrdinalIgnoreCaseEx() static private method

static private CompareOrdinalIgnoreCaseEx ( String strA, int indexA, String strB, int indexB, int length ) : int
strA String
indexA int
strB String
indexB int
length int
return int
        internal static unsafe int CompareOrdinalIgnoreCaseEx(String strA, int indexA, String strB, int indexB, int length ) {
            return (nativeCompareOrdinalIgnoreCaseEx(InvariantNativeTextInfo, strA, indexA, strB, indexB, length));
        }

Usage Example

        // Token: 0x0600308A RID: 12426 RVA: 0x000B9BF8 File Offset: 0x000B7DF8
        internal static int LastIndexOfStringOrdinalIgnoreCase(string source, string value, int startIndex, int count)
        {
            if (value.Length == 0)
            {
                return(startIndex);
            }
            int result = -1;

            if (TextInfo.TryFastFindStringOrdinalIgnoreCase(8388608, source, startIndex, value, count, ref result))
            {
                return(result);
            }
            int num = startIndex - count + 1;

            if (value.Length > 0)
            {
                startIndex -= value.Length - 1;
            }
            while (startIndex >= num)
            {
                if (TextInfo.CompareOrdinalIgnoreCaseEx(source, startIndex, value, 0, value.Length, value.Length) == 0)
                {
                    return(startIndex);
                }
                startIndex--;
            }
            return(-1);
        }
All Usage Examples Of System.Globalization.TextInfo::CompareOrdinalIgnoreCaseEx