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

ParsePlainTextInFlow() private method

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

            string str = ParsePlainTextInFlowSingleLine(out success);
            if (success) { text.Append(str); }
            else
            {
                Error("Failed to parse PlainTextInFlowSingleLine of PlainTextInFlow.");
                position = start_position;
                return text.ToString();
            }

            while (true)
            {
                str = ParsePlainTextInFlowMoreLine(out success);
                if (success) { text.Append(str); }
                else { break; }
            }
            success = true;

            return text.ToString();
        }
YamlParser