Example #1
0
    public string method_10(string A_0, FontTypeHint A_1)
    {
        int num = 11;

        if (((A_0.Trim().Length != 0) && (A_0.StartsWith(BookmarkStart.b("尰刲弴堶䬸", num)) || A_0.StartsWith(BookmarkStart.b("尰娲嬴堶䬸", num)))) && ((this.method_5().ThemeFontLanguage != null) && (this.method_5().Themes != null)))
        {
            bool   flag;
            string oldValue = (flag = A_0.StartsWith(BookmarkStart.b("尰刲弴堶䬸", num))) ? BookmarkStart.b("尰刲弴堶䬸", num) : BookmarkStart.b("尰娲嬴堶䬸", num);
            Dictionary <string, Class325> dictionary = flag ? this.method_2() : this.method_1();
            string str3 = A_0.Replace(oldValue, string.Empty);
            if (A_1 != FontTypeHint.Default)
            {
                return(this.method_11(A_1, dictionary));
            }
            string str = str3;
            if (str != null)
            {
                if ((str == BookmarkStart.b("瀰䀲嘴帶倸", num)) || (str == BookmarkStart.b("礰爲嬴䐶倸", num)))
                {
                    return(this.method_11(FontTypeHint.Default, dictionary));
                }
                if (str == BookmarkStart.b("琰刲䘴䌶砸䠺吼帾", num))
                {
                    return(this.method_11(FontTypeHint.EastAsia, dictionary));
                }
                if (str == BookmarkStart.b("猰娲儴帶", num))
                {
                    return(this.method_11(FontTypeHint.ComplexScript, dictionary));
                }
            }
        }
        return(string.Empty);
    }
Example #2
0
    internal string method_11(FontTypeHint A_0, Dictionary <string, Class325> A_1)
    {
        int    num  = 5;
        short  num2 = 0x409;
        string key  = BookmarkStart.b("䜪䰬嬮堰崲", 5);

        switch (A_0)
        {
        case FontTypeHint.EastAsia:
            key  = BookmarkStart.b("个䰬", num);
            num2 = this.method_5().ThemeFontLanguage.method_2();
            break;

        case FontTypeHint.ComplexScript:
            key  = BookmarkStart.b("䠪帬", num);
            num2 = this.method_5().ThemeFontLanguage.method_0();
            break;

        default:
            key  = BookmarkStart.b("䜪䰬嬮堰崲", num);
            num2 = this.method_5().ThemeFontLanguage.method_4();
            break;
        }
        Class325 class2 = A_1[key];

        if (class2.method_8() == 0)
        {
            key = this.method_12(num2);
            if (A_1.ContainsKey(key))
            {
                class2 = A_1[key];
            }
            else
            {
                class2 = A_1[BookmarkStart.b("䜪䰬嬮堰崲", num)];
            }
        }
        return(class2.method_6());
    }