internal static void smethod_10(string A_0, byte[] A_1, int A_2) { for (int i = 0; i < A_0.Length; i += 2) { A_1[A_2++] = (byte)Class1041.smethod_26(A_0.Substring(i, 2)); } }
internal static Color smethod_9(string A_0) { int num = 0x12; A_0 = A_0.ToLower(); Match match = regex_0.Match(A_0); if (match.Success) { Group group = match.Groups[1]; if (group.Success) { string str = group.Value; if (str.Length == 6) { return(Color.FromArgb(-16777216 + Class1041.smethod_26(str))); } int num5 = Class567.smethod_31(str[0]); int num6 = Class567.smethod_31(str[1]); int num7 = Class567.smethod_31(str[2]); return(Color.FromArgb(num5 * 0x11, num6 * 0x11, num7 * 0x11)); } int red = smethod_10(match.Groups[2].Value, match.Groups[3].Success); int green = smethod_10(match.Groups[4].Value, match.Groups[5].Success); int blue = smethod_10(match.Groups[6].Value, match.Groups[7].Success); return(Color.FromArgb(red, green, blue)); } if (A_0.EndsWith(BookmarkStart.b("強䠹夻䜽", num))) { A_0 = A_0.Substring(0, A_0.Length - BookmarkStart.b("強䠹夻䜽", num).Length) + BookmarkStart.b("強䠹崻䜽", num); } return(Color.FromName(A_0)); }
private static char smethod_3(string A_0) { A_0 = A_0.Trim(new char[] { '_', 'x' }); return((char)Class1041.smethod_26(A_0)); }
internal static string smethod_0(string A_0) { int num = 8; if (A_0 == null) { return(null); } if (A_0.Length == 0) { return(A_0); } StringBuilder builder2 = new StringBuilder(A_0.Length); ParseState text = ParseState.Text; StringBuilder builder = new StringBuilder(10); int num2 = 0; Label_002E: if (num2 >= A_0.Length) { if (text == ParseState.EntityStart) { builder2.Append(BookmarkStart.b("࠭", num) + builder); } return(builder2.ToString()); } switch (text) { case ParseState.Text: { char ch = A_0[num2]; if (ch != '&') { builder2.Append(A_0[num2]); } else { text = ParseState.EntityStart; } goto Label_0224; } case ParseState.EntityStart: { char ch2 = A_0[num2]; if (ch2 == '&') { builder2.Append(BookmarkStart.b("࠭", num) + builder); builder.Remove(0, builder.Length); goto Label_0224; } if (ch2 != ';') { builder.Append(A_0[num2]); if (builder.Length > 9) { text = ParseState.Text; builder2.Append(BookmarkStart.b("࠭", num) + builder); builder.Remove(0, builder.Length); } goto Label_0224; } if (builder.Length != 0) { if (builder[0] == '#') { try { if ((builder[1] != 'x') && (builder[1] != 'X')) { int num5 = Class1041.smethod_23(builder.ToString(1, builder.Length - 1)); builder2.Append(smethod_1(num5)); } else { int num4 = Class1041.smethod_26(builder.ToString(2, builder.Length - 2)); builder2.Append(smethod_1(num4)); } } catch { builder2.Append(BookmarkStart.b("࠭", num) + builder.ToString() + BookmarkStart.b("ᔭ", num)); } } else { object obj2 = hashtable_0[builder.ToString()]; if (obj2 == null) { builder2.Append(BookmarkStart.b("࠭", num) + builder + BookmarkStart.b("ᔭ", num)); } else { int num3 = (int)obj2; builder2.Append((char)num3); } } builder.Remove(0, builder.Length); break; } builder2.Append(BookmarkStart.b("࠭ଯ", num)); break; } default: goto Label_0224; } text = ParseState.Text; Label_0224: num2++; goto Label_002E; }
internal static int smethod_8(string A_0) { return(Class1041.smethod_26(A_0)); }