ProcessEscChar() 정적인 개인적인 메소드

static private ProcessEscChar ( int esc_char ) : char
esc_char int
리턴 char
예제 #1
0
        private static bool State21(FsmContext ctx)
        {
            ctx.L.GetChar();
            switch (ctx.L.input_char)
            {
            case 34:
            case 39:
            case 47:
            case 92:
            case 98:
            case 102:
            case 110:
            case 114:
            case 116:
                ctx.L.string_buffer.Append(Lexer.ProcessEscChar(ctx.L.input_char));
                ctx.NextState = ctx.StateStack;
                return(true);

            case 117:
                ctx.NextState = 22;
                return(true);

            default:
                return(false);
            }
        }
예제 #2
0
        private static bool State21(FsmContext ctx)
        {
            ctx.L.GetChar();
            int num = ctx.L.input_char;

            switch (num)
            {
            case 114:
            case 116:
                break;

            default:
                if (num != 34 && num != 39 && num != 47 && num != 92 && num != 98 && num != 102 && num != 110)
                {
                    return(false);
                }
                break;

            case 117:
                ctx.NextState = 22;
                return(true);
            }
            ctx.L.string_buffer.Append(Lexer.ProcessEscChar(ctx.L.input_char));
            ctx.NextState = ctx.StateStack;
            return(true);
        }
예제 #3
0
        private static bool State21(FsmContext ctx)
        {
            ctx.L.GetChar();
            int num = ctx.L.input_char;

            switch (num)
            {
            case 110:
            case 114:
            case 116:
                goto IL_80;

            case 111:
            case 112:
            case 113:
            case 115:
IL_41:
                if (num != 34 && num != 39 && num != 47 && num != 92 && num != 98 && num != 102)
                {
                    return(false);
                }
                goto IL_80;

            case 117:
                ctx.NextState = 22;
                return(true);
            }
            goto IL_41;
IL_80:
            ctx.L.string_buffer.Append(Lexer.ProcessEscChar(ctx.L.input_char));
            ctx.NextState = ctx.StateStack;
            return(true);
        }
예제 #4
0
        private static bool State21(FsmContext ctx)
        {
            ctx.L.GetChar();
            int  num = ctx.L.input_char;
            bool result;

            if (num <= 92)
            {
                if (num <= 39)
                {
                    if (num != 34 && num != 39)
                    {
                        goto IL_A9;
                    }
                }
                else if (num != 47 && num != 92)
                {
                    goto IL_A9;
                }
            }
            else if (num <= 102)
            {
                if (num != 98 && num != 102)
                {
                    goto IL_A9;
                }
            }
            else if (num != 110)
            {
                switch (num)
                {
                case 114:
                case 116:
                    break;

                case 115:
                    goto IL_A9;

                case 117:
                    ctx.NextState = 22;
                    result        = true;
                    return(result);

                default:
                    goto IL_A9;
                }
            }
            ctx.L.string_buffer.Append(Lexer.ProcessEscChar(ctx.L.input_char));
            ctx.NextState = ctx.StateStack;
            result        = true;
            return(result);

IL_A9:
            result = false;
            return(result);
        }