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

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

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

            return currentIndex - matchAtIndex;
        }
DecPatternMatcher