Akka.Configuration.Hocon.Tokenizer.Matches C# (CSharp) Method

Matches() public method

Determines whether the given pattern matches the value at the current position of the tokenizer.
public Matches ( string pattern ) : bool
pattern string The string that contains the characters to match.
return bool
        public bool Matches(string pattern)
        {
            if (pattern.Length + _index > _text.Length)
                return false;

            //Aaron: added this to make it easier to set a breakpoint to debug config issues
            string selected = _text.Substring(_index, pattern.Length);
            if (selected == pattern)
                return true;

            return false;
        }

Same methods

Tokenizer::Matches ( ) : bool