-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathXtraClass.cs
123 lines (120 loc) · 2.49 KB
/
XtraClass.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace OwORhythmRewritten
{
// Token: 0x02000003 RID: 3
internal class XtraClass
{
// Token: 0x06000002 RID: 2 RVA: 0x0000205C File Offset: 0x0000025C
public static string OwO(string input)
{
string result;
try
{
bool flag = input == null;
if (flag)
{
result = null;
}
else
{
bool flag2 = input == "";
if (flag2)
{
result = "";
}
else
{
string[] array = new string[]
{
"UwU"
};
string arg = array[new Random().Next(0, array.Length)];
result = Regex.Replace(Regex.Replace(Regex.Replace(Regex.Replace(Regex.Replace(Regex.Replace(input, "[rl]", "w"), "[RL]", "W"), "ove", "uv"), "n(?!(?:\\b|[y]))", "ny"), "N(?!(?:\\b|[Y]))", "NY"), "[!]", string.Format(" {0}", arg));
}
}
}
catch
{
result = input;
}
return result;
}
// Token: 0x06000003 RID: 3 RVA: 0x00002140 File Offset: 0x00000340
public static string EscapeFormatting(string text)
{
StringBuilder stringBuilder = new StringBuilder(text.Length);
bool flag = false;
foreach (char c in text)
{
bool flag2 = flag;
if (flag2)
{
bool flag3 = c == '>';
if (flag3)
{
flag = false;
}
}
else
{
bool flag4 = c == '<';
if (flag4)
{
flag = true;
}
else
{
stringBuilder.Append(c);
}
}
}
return stringBuilder.ToString();
}
// Token: 0x06000004 RID: 4 RVA: 0x000021C0 File Offset: 0x000003C0
public static string GetRankStringFromStringNumber(string input)
{
string result;
try
{
bool flag = input == null;
if (flag)
{
result = null;
}
else
{
bool flag2 = input == "";
if (flag2)
{
result = "";
}
else
{
string text = string.Format("{0} ", input);
string[] array = (from x in XtraClass.EscapeFormatting(input).Split(new char[]
{
' '
})
select string.Format("{0} ", x)).Distinct<string>().ToArray<string>();
Dictionary<string, string> dictionary = new Dictionary<string, string>();
foreach (string text2 in array)
{
dictionary.Add(text2, XtraClass.OwO(text2));
text = text.Replace(text2, XtraClass.OwO(text2));
}
result = text.Remove(text.Length - 1);
}
}
}
catch
{
result = input;
}
return result;
}
}
}