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

ParseDoubleQuotedSingleLine() private method

private ParseDoubleQuotedSingleLine ( bool &success ) : string
success bool
return string
        private string ParseDoubleQuotedSingleLine(out bool success)
        {
            int errorCount = Errors.Count;
            StringBuilder text = new StringBuilder();
            int start_position = position;

            MatchTerminal('"', out success);
            if (!success)
            {
                Error("Failed to parse '\\\"' of DoubleQuotedSingleLine.");
                position = start_position;
                return text.ToString();
            }

            while (true)
            {
                ErrorStatck.Push(errorCount); errorCount = Errors.Count;
                while (true)
                {
                    char ch = MatchTerminalSet("\"\\\r\n", true, out success);
                    if (success)
                    {
                        ClearError(errorCount);
                        text.Append(ch);
                        break;
                    }

                    ch = ParseEscapeSequence(out success);
                    if (success)
                    {
                        ClearError(errorCount);
                        text.Append(ch);
                        break;
                    }

                    break;
                }
                errorCount = ErrorStatck.Pop();
                if (!success) { break; }
            }
            success = true;

            MatchTerminal('"', out success);
            if (!success)
            {
                Error("Failed to parse '\\\"' of DoubleQuotedSingleLine.");
                position = start_position;
            }

            if (success) { ClearError(errorCount); }
            return text.ToString();
        }
YamlParser