Antlr.Runtime.Lexer.GetCharErrorDisplay C# (CSharp) Method

GetCharErrorDisplay() public method

public GetCharErrorDisplay ( int c ) : string
c int
return string
        public virtual string GetCharErrorDisplay( int c )
        {
            string s = ( (char)c ).ToString();
            switch ( c )
            {
            case TokenTypes.EndOfFile:
                s = "<EOF>";
                break;
            case '\n':
                s = "\\n";
                break;
            case '\t':
                s = "\\t";
                break;
            case '\r':
                s = "\\r";
                break;
            }
            return "'" + s + "'";
        }