Beispiel #1
0
 private void method_4(Class190 A_0)
 {
     A_0.method_1(0x186a0);
     A_0.method_3(0x10);
     A_0.method_5(0x10);
     A_0.method_7(0x80);
     A_0.method_9(20);
     A_0.method_11(BookmarkStart.b("昦氨砪", 1));
     A_0.method_13(BookmarkStart.b("搦䄨䨪䐬䄮堰崲刴稶嘸强堼簾̀B", 1));
     A_0.method_15(BookmarkStart.b("琦愨横ᰬ", 1));
 }
        private void method_22(char char_3)
        {
            int      num4;
            char     ch;
            char     ch2;
            char     ch4;
            int      index      = this.int_1;
            int      startIndex = this.int_1;
            int      num3       = this.int_1;
            Class190 class2     = null;

            goto Label_0299;
Label_009B:
            ch2 = ch;
            index++;
Label_0211:
            if (class2 == null)
            {
                class2 = this.method_14();
            }
            this.method_23(class2, ch2, num3, num4);
            num3 = index;
Label_0299:
            ch4 = this.char_2[index++];
            if (ch4 > '\r')
            {
                switch (ch4)
                {
                case '"':
                case '\'':
                    if (this.char_2[index - 1] != char_3)
                    {
                        goto Label_0299;
                    }
                    index--;
                    if (startIndex == num3)
                    {
                        this.struct29_0 = new Struct29(this.char_2, startIndex, index - startIndex);
                    }
                    else
                    {
                        if (class2 == null)
                        {
                            class2 = this.method_14();
                        }
                        if (index > num3)
                        {
                            class2.method_1(this.char_2, num3, index - num3);
                        }
                        this.struct29_0 = new Struct29(class2.method_5(), 0, class2.Int32_0);
                    }
                    index++;
                    this.int_1 = index;
                    return;
                }
                if (ch4 != '\\')
                {
                    goto Label_0299;
                }
                this.int_1 = index;
                if (!this.method_20(0, true))
                {
                    this.int_1 = index;
                    throw JsonReaderException.smethod_1(this, "Unterminated string. Expected delimiter: {0}.".smethod_0(CultureInfo.InvariantCulture, char_3));
                }
                num4 = index - 1;
                ch   = this.char_2[index];
                char ch5 = ch;
                if (ch5 > '\\')
                {
                    if (ch5 <= 'f')
                    {
                        if (ch5 != 'b')
                        {
                            if (ch5 != 'f')
                            {
                                goto Label_02F8;
                            }
                            index++;
                            ch2 = '\f';
                        }
                        else
                        {
                            index++;
                            ch2 = '\b';
                        }
                        goto Label_0211;
                    }
                    switch (ch5)
                    {
                    case 'r':
                        index++;
                        ch2 = '\r';
                        goto Label_0211;

                    case 't':
                        index++;
                        ch2 = '\t';
                        goto Label_0211;

                    case 'u':
                        index++;
                        this.int_1 = index;
                        ch2        = this.method_24();
                        if (!Class198.smethod_12(ch2))
                        {
                            if (Class198.smethod_11(ch2))
                            {
                                bool flag;
                                do
                                {
                                    flag = false;
                                    if (!this.method_20(2, true) || ((this.char_2[this.int_1] != '\\') || (this.char_2[this.int_1 + 1] != 'u')))
                                    {
                                        ch2 = 0xfffd;
                                    }
                                    else
                                    {
                                        char ch3 = ch2;
                                        this.int_1 += 2;
                                        ch2         = this.method_24();
                                        if (!Class198.smethod_12(ch2))
                                        {
                                            if (Class198.smethod_11(ch2))
                                            {
                                                ch3  = 0xfffd;
                                                flag = true;
                                            }
                                            else
                                            {
                                                ch3 = 0xfffd;
                                            }
                                        }
                                        if (class2 == null)
                                        {
                                            class2 = this.method_14();
                                        }
                                        this.method_23(class2, ch3, num3, num4);
                                        num3 = this.int_1;
                                    }
                                }while (flag);
                            }
                        }
                        else
                        {
                            ch2 = 0xfffd;
                        }
                        index = this.int_1;
                        goto Label_0211;

                    case 'n':
                        index++;
                        ch2 = '\n';
                        goto Label_0211;
                    }
                    goto Label_02F8;
                }
                if (ch5 <= '\'')
                {
                    switch (ch5)
                    {
                    case '"':
                    case '\'':
                        goto Label_009B;
                    }
                    goto Label_02F8;
                }
                if (ch5 != '/')
                {
                    if (ch5 != '\\')
                    {
                        goto Label_02F8;
                    }
                    index++;
                    ch2 = '\\';
                    goto Label_0211;
                }
                goto Label_009B;
            }
            switch (ch4)
            {
            case '\0':
                if (this.int_0 == (index - 1))
                {
                    index--;
                    if (this.method_18(true) == 0)
                    {
                        this.int_1 = index;
                        throw JsonReaderException.smethod_1(this, "Unterminated string. Expected delimiter: {0}.".smethod_0(CultureInfo.InvariantCulture, char_3));
                    }
                }
                break;

            case '\n':
                this.int_1 = index - 1;
                this.method_33();
                index = this.int_1;
                break;

            case '\r':
                this.int_1 = index - 1;
                this.method_34(true);
                index = this.int_1;
                break;
            }
            goto Label_0299;
Label_02F8:
            index++;
            this.int_1 = index;
            throw JsonReaderException.smethod_1(this, "Bad JSON escape sequence: {0}.".smethod_0(CultureInfo.InvariantCulture, @"\" + ch));
        }
Beispiel #3
0
 private bool method_13(bool bool1, bool bool2)
 {
     if (_int11 < 262 && !bool1)
     {
         return(false);
     }
     while (_int11 >= 262 || bool1)
     {
         if (_int11 == 0)
         {
             _class1900.method_4(_byte0, _int9, _int10 - _int9, bool2);
             _int9 = _int10;
             return(false);
         }
         if (_int10 > 65274)
         {
             method_10();
         }
         int num;
         if (_int11 >= 3 && (num = method_9()) != 0 && _enum290 != Enum29.Const2 && _int10 - num <= 32506 &&
             method_11(num))
         {
             var flag = _class1900.method_7(_int10 - _int7, _int8);
             _int11 -= _int8;
             if (_int8 <= _int13 && _int11 >= 3)
             {
                 while (--_int8 > 0)
                 {
                     _int10++;
                     method_9();
                 }
                 _int10++;
             }
             else
             {
                 _int10 += _int8;
                 if (_int11 >= 2)
                 {
                     method_8();
                 }
             }
             _int8 = 2;
             if (!flag)
             {
                 continue;
             }
         }
         else
         {
             _class1900.method_6(_byte0[_int10] & 255);
             _int10++;
             _int11--;
         }
         if (_class1900.method_5())
         {
             var flag2 = bool2 && _int11 == 0;
             _class1900.method_4(_byte0, _int9, _int10 - _int9, flag2);
             _int9 = _int10;
             return(!flag2);
         }
     }
     return(true);
 }