コード例 #1
0
    public static string smethod_2(string A_0, string A_1)
    {
        int num3;
        int num = 13;

        if (A_1.StartsWith(BookmarkStart.b("ᰲ", 13)))
        {
            return(A_1);
        }
        if (Class567.smethod_41(A_1, BookmarkStart.b("紲怴笶甸", num)))
        {
            return("");
        }
        string str        = smethod_3(A_0);
        int    startIndex = 0;

Label_006F:
        num3 = A_1.IndexOf(BookmarkStart.b("ᴲ᬴ᠶ", num), startIndex);
        if (num3 >= startIndex)
        {
            if (num3 > startIndex)
            {
                str = str + A_1.Substring(startIndex, num3 - startIndex);
            }
            str        = smethod_3(str);
            startIndex = num3 + BookmarkStart.b("ᴲ᬴ᠶ", num).Length;
            goto Label_006F;
        }
        return(str + A_1.Substring(startIndex, A_1.Length - startIndex));
    }
コード例 #2
0
    private static void smethod_4(Class857 A_0, Paragraph A_1, CharacterFormat A_2, Style A_3)
    {
        int      num    = 7;
        Class396 class2 = A_0.method_11();
        Document doc    = A_0.method_9();
        string   str    = class2.method_12(BookmarkStart.b("䌬丮尰嘲", 7), null);
        string   str2   = class2.method_12(BookmarkStart.b("帬嬮䌰娲嬴倶ᐸ䴺尼匾㑀♂", 7), null);

        if (!Class567.smethod_16(str2))
        {
            str2 = class2.method_21();
        }
        string str3 = class2.method_12(BookmarkStart.b("䤬䘮䈰䌲头嘶䀸", num), null);

        if (Class567.smethod_16(str) && (str3 != BookmarkStart.b("䌬䀮弰嘲", num)))
        {
            smethod_12(A_0, A_1, FieldType.FieldSet, string.Format(BookmarkStart.b("縬樮攰ጲ临ܶ䐸ᬺἼ䐾灀㹂杄", num), str, str2), str2, A_2, A_3);
            smethod_12(A_0, A_1, FieldType.FieldRef, string.Format(BookmarkStart.b("缬樮眰ጲ᜴䰶स䘺Ἴ", num), str), str2, A_2, A_3);
            int num2 = 0;
            foreach (Bookmark bookmark in doc.Bookmarks)
            {
                if (Class567.smethod_41(str, bookmark.Name))
                {
                    break;
                }
                num2++;
            }
            if (num2 == doc.Bookmarks.Count)
            {
                A_1.method_13(new BookmarkStart(doc, str));
                A_1.method_13(new BookmarkEnd(doc, str));
            }
        }
    }
コード例 #3
0
    internal static Class1125 smethod_8(string A_0, string A_1)
    {
        int num = 11;

        if (!smethod_14(A_0))
        {
            return(new Class1125(A_1));
        }
        MatchCollection matchs = (Class567.smethod_41(A_0, BookmarkStart.b("地尲嬴䌶ᐸ崺尼刾⡀⽂㱄", num)) ? regex_2 : regex_1).Matches(A_1);
        Class1030       class2 = new Class1030(matchs.Count);

        foreach (Match match in matchs)
        {
            class2.Add(new Class1125(match.Value));
        }
        return(smethod_5(class2));
    }
コード例 #4
0
    internal static void smethod_2(Interface50 A_0)
    {
        int      num    = 13;
        bool     flag   = false;
        string   str    = null;
        string   str2   = null;
        string   str3   = null;
        string   str4   = "";
        bool     flag2  = false;
        bool     flag3  = false;
        string   str5   = null;
        Class394 class2 = A_0.imethod_1();

        while (class2.method_19())
        {
            string key = class2.method_1();
            if (key != null)
            {
                int num2;
                if (Class1160.dictionary_12 == null)
                {
                    Dictionary <string, int> dictionary1 = new Dictionary <string, int>(8);
                    dictionary1.Add(BookmarkStart.b("朲䰴䜶尸", num), 0);
                    dictionary1.Add(BookmarkStart.b("挲䜴堶常爺礼", num), 1);
                    dictionary1.Add(BookmarkStart.b("怲崴嘶䤸帺琼笾", num), 2);
                    dictionary1.Add(BookmarkStart.b("眲䜴嘶丸稺丼伾⑀⁂ㅄ", num), 3);
                    dictionary1.Add(BookmarkStart.b("簲圴崶尸堺䤼瘾Հ", num), 4);
                    dictionary1.Add(BookmarkStart.b("縲娴夶倸债堼䴾", num), 5);
                    dictionary1.Add(BookmarkStart.b("昲䔴匶堸伺堼爾⹀❂⁄", num), 6);
                    dictionary1.Add(BookmarkStart.b("娲儴", num), 7);
                    Class1160.dictionary_12 = dictionary1;
                }
                if (Class1160.dictionary_12.TryGetValue(key, out num2))
                {
                    switch (num2)
                    {
                    case 0:
                        flag = Class567.smethod_41(class2.method_3(), BookmarkStart.b("缲尴夶券", num));
                        break;

                    case 1:
                        str = class2.method_3();
                        break;

                    case 2:
                        str2 = class2.method_3();
                        break;

                    case 3:
                        flag3 = Class567.smethod_41(class2.method_3(), BookmarkStart.b("稲嘴堶圸", num));
                        break;

                    case 4:
                        str3 = class2.method_3();
                        break;

                    case 5:
                        str4 = class2.method_3();
                        break;

                    case 6:
                        flag2 = Class567.smethod_41(class2.method_3(), BookmarkStart.b("爲头䀶堸䈺丼", num));
                        break;

                    case 7:
                        str5 = class2.method_3();
                        break;
                    }
                }
            }
        }
        ShapeObject obj2 = (ShapeObject)A_0.imethod_8(str2);

        if (obj2 != null)
        {
            obj2.SetShapeType(ShapeType.OleObject);
            DocOleObject oleFormat = obj2.OleFormat;
            oleFormat.AutoUpdate = flag2;
            oleFormat.Interface49.set_DisplayAsIcon(flag3);
            if (str != null)
            {
                oleFormat.Interface49.set_ObjectType(str);
            }
            if (flag)
            {
                oleFormat.method_86(OleLinkType.Link);
                if (!string.IsNullOrEmpty(str5))
                {
                    if (A_0.imethod_5(str5))
                    {
                        str4 = A_0.imethod_4(str5);
                    }
                    else
                    {
                        str4 = (A_0 as Class466).method_0().method_184(str5);
                        oleFormat.Interface49.set_LinkPath(str4);
                    }
                }
                if (!string.IsNullOrEmpty(str4))
                {
                    string[] strArray = str4.Split(new char[] { '!' }, 2);
                    oleFormat.SourceFullName = strArray[0];
                    if (strArray.Length > 1)
                    {
                        oleFormat.SourceItem = strArray[1];
                    }
                }
            }
            else
            {
                string str8 = !string.IsNullOrEmpty(str5) ? str5 : str3;
                A_0.imethod_2(str8, oleFormat);
            }
            while (class2.method_9(BookmarkStart.b("簲礴父瘸夺圼娾≀㝂", num)))
            {
                string str6;
                if (((str6 = class2.method_1()) != null) && (str6 != BookmarkStart.b("缲尴夶券漺䐼伾⑀", num)))
                {
                    if (!(str6 == BookmarkStart.b("缲娴吶券帺夼社⡀♂⥄⍆", num)))
                    {
                        if ((str6 == BookmarkStart.b("搲娴䔶崸紺吼娾ⵀ❂ل⡆ⵈ⹊㹌", num)) || (str6 == BookmarkStart.b("甲尴制唸强縼倾╀♂㙄", num)))
                        {
                        }
                    }
                    else
                    {
                        oleFormat.IsLocked = class2.method_33(true);
                    }
                }
            }
        }
    }