Monobjc.Tools.Generator.Parsers.Sgml.HtmlStream.SniffLiteral C# (CSharp) Method

SniffLiteral() private method

private SniffLiteral ( ) : string
return string
        private string SniffLiteral()
        {
            int quoteChar = this.PeekChar();
            if (quoteChar == '\'' || quoteChar == '"')
            {
                this.ReadChar(); // consume quote char
                int i = this.pos;
                int ch = this.ReadChar();
                while (ch != EOF && ch != quoteChar)
                {
                    ch = this.ReadChar();
                }
                return (this.pos > i) ? new string(this.m_buffer, i, this.pos - i - 1) : "";
            }
            return null;
        }