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

Matches() public method

Determines whether any of the given patterns match the value at the current position of the tokenizer.
public Matches ( ) : bool
return bool
        public bool Matches(params string[] patterns)
        {
            foreach (string pattern in patterns)
            {
                if (pattern.Length + _index >= _text.Length)
                    continue;

                if (_text.Substring(_index, pattern.Length) == pattern)
                    return true;
            }
            return false;
        }

Same methods

Tokenizer::Matches ( string pattern ) : bool