YamlUtility.Grammar.YamlParser.MatchTerminalSet C# (CSharp) Method

MatchTerminalSet() private method

private MatchTerminalSet ( string terminalSet, bool isComplement, bool &success ) : char
terminalSet string
isComplement bool
success bool
return char
        private char MatchTerminalSet(string terminalSet, bool isComplement, out bool success)
        {
            success = false;
            if (Input.HasInput(position))
            {
                char symbol = Input.GetInputSymbol(position);
                bool match = isComplement ? terminalSet.IndexOf(symbol) == -1 : terminalSet.IndexOf(symbol) > -1;
                if (match)
                {
                    position++;
                    success = true;
                }
                return symbol;
            }
            return default(char);
        }
YamlParser