Alsing.Text.PatternMatchers.HexPatternMatcher.Match C# (CSharp) Метод

Match() публичный Метод

public Match ( string textToMatch, int matchAtIndex ) : int
textToMatch string
matchAtIndex int
Результат int
        public override int Match(string textToMatch, int matchAtIndex)
        {
            int currentIndex = matchAtIndex;
            do
            {
                char currentChar = textToMatch[currentIndex];
                if ((currentChar >= '0' && currentChar <= '9') || (currentChar >= 'a' && currentChar <= 'f') ||
                    (currentChar >= 'A' && currentChar <= 'F'))
                {
                    //current char is hexchar
                }
                else
                {
                    break;
                }
                currentIndex++;
            } while (currentIndex < textToMatch.Length);

            return currentIndex - matchAtIndex;
        }
    }
HexPatternMatcher