Ejemplo n.º 1
0
        internal static string smethod_2(int A_0, FootnoteNumberFormat A_1)
        {
            string str = string.Empty;
            FootnoteNumberFormat format = A_1;

            if (format <= FootnoteNumberFormat.DecimalFullWidth)
            {
                switch (format)
                {
                case FootnoteNumberFormat.Arabic:
                    return(A_0.ToString());

                case FootnoteNumberFormat.UpperCaseRoman:
                    return(smethod_5(A_0).ToUpper());

                case FootnoteNumberFormat.LowerCaseRoman:
                    return(smethod_5(A_0).ToLower());

                case FootnoteNumberFormat.UpperCaseLetter:
                    return(smethod_6(A_0).ToUpper());

                case FootnoteNumberFormat.LowerCaseLetter:
                    return(smethod_6(A_0).ToLower());

                case (FootnoteNumberFormat.LowerCaseLetter | FootnoteNumberFormat.UpperCaseRoman):
                case (FootnoteNumberFormat.LowerCaseLetter | FootnoteNumberFormat.LowerCaseRoman):
                case (FootnoteNumberFormat.LowerCaseLetter | FootnoteNumberFormat.UpperCaseLetter):
                case ((FootnoteNumberFormat)8):
                    return(str);

                case FootnoteNumberFormat.Chicago:
                {
                    Class495 class9 = new Class495();
                    return(class9.method_5(A_0.ToString()));
                }

                case FootnoteNumberFormat.DecimalFullWidth:
                {
                    Class495 class6 = new Class495();
                    return(class6.method_10(A_0.ToString()));
                }
                }
                return(str);
            }
            switch (format)
            {
            case FootnoteNumberFormat.DecimalEnclosedCircleChinese:
            {
                Class495 class8 = new Class495();
                return(class8.method_8(A_0.ToString()));
            }

            case FootnoteNumberFormat.IdeographEnclosedCircle:
            {
                Class495 class4 = new Class495();
                return(class4.method_9(A_0.ToString()));
            }

            case FootnoteNumberFormat.IdeographTraditional:
            {
                Class495 class2 = new Class495();
                return(class2.method_6(A_0.ToString()));
            }

            case FootnoteNumberFormat.IdeographZodiac:
            {
                Class495 class7 = new Class495();
                return(class7.method_7(A_0.ToString()));
            }

            case FootnoteNumberFormat.ChineseLegalSimplified:
            {
                Class495 class3 = new Class495();
                class3.method_1(DigitType.ChineseLegalSimplified);
                return(class3.method_2(A_0.ToString()));
            }

            case FootnoteNumberFormat.ChineseCountingThousand:
            {
                Class495 class5 = new Class495();
                class5.method_1(DigitType.ChineseCountingThousand);
                return(class5.method_2(A_0.ToString()));
            }

            case ((FootnoteNumberFormat)40):
            case ((FootnoteNumberFormat)0x29):
            case ((FootnoteNumberFormat)0x2a):
            case ((FootnoteNumberFormat)0x2b):
            case ((FootnoteNumberFormat)0x2c):
            case FootnoteNumberFormat.Hebrew1:
            case FootnoteNumberFormat.ArabicAlpha:
            case FootnoteNumberFormat.Hebrew2:
            case FootnoteNumberFormat.ArabicAbjad:
                return(str);
            }
            return(str);
        }
 public override void Visit(Class495 c) { }
Ejemplo n.º 3
0
        private string method_8(int A_0, LocaleIDs A_1, bool A_2)
        {
            string          str2;
            Class495        class7;
            int             num  = 5;
            ListPatternType type = this.listPatternType_0;

            if (type > ListPatternType.LeadingZero)
            {
                switch (type)
                {
                case ListPatternType.DecimalEnclosedCircleChinese:
                    goto Label_044D;

                case ListPatternType.IdeographTraditional:
                {
                    Class495 class6 = new Class495();
                    class6.method_1(DigitType.Traditional);
                    string str8 = class6.method_2((A_0 + 1).ToString());
                    if (!A_2)
                    {
                        return(str8);
                    }
                    return(this.string_20 + str8 + this.string_21);
                }

                case ListPatternType.IdeographZodiac:
                {
                    Class495 class8 = new Class495();
                    class8.method_1(DigitType.Zodiac);
                    string str9 = class8.method_2((A_0 + 1).ToString());
                    if (!A_2)
                    {
                        return(str9);
                    }
                    return(this.string_20 + str9 + this.string_21);
                }

                case ListPatternType.IdeographLegalTraditional:
                {
                    Class495 class3 = new Class495();
                    class3.method_1(DigitType.IdeographLegalTraditional);
                    string str5 = class3.method_2((A_0 + 1).ToString());
                    if (!A_2)
                    {
                        return(str5);
                    }
                    return(this.string_20 + str5 + this.string_21);
                }

                case ListPatternType.TaiwaneseCountingThousand:
                {
                    Class495 class5 = new Class495();
                    class5.method_1(DigitType.TaiwaneseCountingThousand);
                    string str4 = class5.method_2((A_0 + 1).ToString());
                    if (!A_2)
                    {
                        return(str4);
                    }
                    return(this.string_20 + str4 + this.string_21);
                }

                case ListPatternType.ChineseLegalSimplified:
                {
                    Class495 class9 = new Class495();
                    class9.method_1(DigitType.ChineseLegalSimplified);
                    string str6 = class9.method_2((A_0 + 1).ToString());
                    if (!A_2)
                    {
                        return(str6);
                    }
                    return(this.string_20 + str6 + this.string_21);
                }

                case ListPatternType.ChineseCountingThousand:
                {
                    Class495 class2 = new Class495();
                    class2.method_1(DigitType.ChineseCountingThousand);
                    string str = class2.method_2((A_0 + 1).ToString());
                    if (!A_2)
                    {
                        return(str);
                    }
                    return(this.string_20 + str + this.string_21);
                }

                case ListPatternType.None:
                    if (!A_2)
                    {
                        return(string.Empty);
                    }
                    if (this.string_20 == null)
                    {
                        if ((this.string_20 == null) && (this.string_21 == null))
                        {
                            return(this.LevelText);
                        }
                        return(string.Empty);
                    }
                    return(this.string_20 + this.string_21);

                case ListPatternType.CustomType:
                    str2 = string.Empty;
                    if (this.class496_0.method_0() != ListPatternFormat.LeadingTwoZero)
                    {
                        if (this.class496_0.method_0() == ListPatternFormat.LeadingThreedZero)
                        {
                            str2 = BookmarkStart.b("ᬪᴬἮ0", num);
                        }
                        else if (this.class496_0.method_0() == ListPatternFormat.LeadingFourZero)
                        {
                            str2 = BookmarkStart.b("ᬪᴬἮİȲ", num);
                        }
                    }
                    else
                    {
                        str2 = BookmarkStart.b("ᬪᴬḮ", num);
                    }
                    goto Label_0406;
                }
                goto Label_057B;
            }
            switch (type)
            {
            case ListPatternType.Arabic:
            {
                if (this.NoPlaceholder)
                {
                    if (!A_2)
                    {
                        return("");
                    }
                    return(this.string_20 + this.string_21);
                }
                if (!A_2)
                {
                    int num13 = A_0 + 1;
                    return(num13.ToString());
                }
                int num12 = A_0 + 1;
                return(this.string_20 + num12.ToString() + this.string_21);
            }

            case ListPatternType.UpRoman:
                if (!A_2)
                {
                    return(smethod_5(A_0 + 1).ToUpper());
                }
                return(this.string_20 + smethod_5(A_0 + 1).ToUpper() + this.string_21);

            case ListPatternType.LowRoman:
                if (!A_2)
                {
                    return(smethod_5(A_0 + 1).ToLower());
                }
                return(this.string_23 + smethod_5(A_0 + 1).ToLower() + this.string_22);

            case ListPatternType.UpLetter:
                if (!A_2)
                {
                    return(smethod_6(A_0 + 1).ToUpper());
                }
                return(this.string_23 + smethod_6(A_0 + 1).ToUpper() + this.string_22);

            case ListPatternType.LowLetter:
                if (!A_2)
                {
                    if (!this.NoPlaceholder)
                    {
                        return(smethod_6(A_0 + 1).ToLower());
                    }
                    return("");
                }
                if (this.NoPlaceholder)
                {
                    return(this.string_20 + this.string_21);
                }
                return(this.string_20 + smethod_6(A_0 + 1).ToLower() + this.string_21);

            case ListPatternType.Ordinal:
                if (!A_2)
                {
                    return(this.method_12(A_0 + 1));
                }
                return(this.string_23 + this.method_12(A_0 + 1) + (string.IsNullOrEmpty(this.string_21) ? this.string_22 : this.string_21));

            case ListPatternType.CardinalText:
                if (!A_2)
                {
                    return(this.method_11(A_0 + 1));
                }
                return(this.string_23 + this.method_11(A_0 + 1) + (string.IsNullOrEmpty(this.string_21) ? this.string_22 : this.string_21));

            case ListPatternType.OrdinalText:
                if (!A_2)
                {
                    return(this.method_15(A_0 + 1, A_1));
                }
                return(this.string_23 + this.method_15(A_0 + 1, A_1) + (string.IsNullOrEmpty(this.string_21) ? this.string_22 : this.string_21));

            case ListPatternType.JapaneseCounting:
            {
                Class495 class4 = new Class495();
                class4.method_1(DigitType.JapaneseCounting);
                string str7 = class4.method_2((A_0 + 1).ToString());
                if (!A_2)
                {
                    return(str7);
                }
                return(this.string_20 + str7 + this.string_21);
            }

            case ListPatternType.DecimalEnclosedCircle:
                goto Label_044D;

            case ListPatternType.LeadingZero:
            {
                if (!A_2)
                {
                    int num17 = A_0 + 1;
                    return(((A_0 < 9) ? BookmarkStart.b("ᬪ", num) : "") + num17.ToString());
                }
                if (A_0 < 9)
                {
                    int num5 = A_0 + 1;
                    return(this.string_20 + BookmarkStart.b("ᬪ", num) + num5.ToString() + this.string_21);
                }
                int num3 = A_0 + 1;
                return(this.string_20 + num3.ToString() + this.string_21);
            }

            default:
                goto Label_057B;
            }
Label_0406:
            if (A_2)
            {
                int num7 = A_0 + 1;
                return(this.string_20 + this.method_9(str2, num7.ToString()) + this.string_21);
            }
            int num16 = A_0 + 1;

            return(this.method_9(BookmarkStart.b("ᬪᴬἮİȲ", num), num16.ToString()));

Label_044D:
            class7 = new Class495();
            string str3 = class7.method_8((A_0 + 1).ToString());

            if (A_2)
            {
                return(this.string_20 + str3 + this.string_21);
            }
            return(str3);

Label_057B:
            if (A_2)
            {
                int num6 = A_0 + 1;
                return(this.string_23 + num6.ToString() + this.string_22);
            }
            int num18 = A_0 + 1;

            return(num18.ToString());
        }
 public abstract void Visit(Class495 c);