terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
RegexReplacement.cs
Go to the documentation of this file.
1using System;
7
9{
10 [global::Cpp2ILInjected.Token(Token = "0x20000C1")]
11 internal sealed class RegexReplacement
12 {
13 [global::Cpp2ILInjected.Token(Token = "0x6000466")]
14 [global::Cpp2ILInjected.Address(RVA = "0x1EBD954", Offset = "0x1EBD954", Length = "0x4B0")]
15 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
16 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(RegexParser), Member = "ParseReplacement", MemberParameters = new object[]
17 {
18 typeof(string),
20 typeof(int),
23 }, ReturnType = typeof(RegexReplacement))]
24 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
25 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
26 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = "System.Text.StringBuilderCache", Member = "Acquire", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(StringBuilder))]
27 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>), Member = ".ctor", ReturnType = typeof(void))]
28 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<int>), Member = ".ctor", ReturnType = typeof(void))]
29 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(RegexNode), Member = "Child", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(RegexNode))]
30 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(StringBuilder), Member = "Append", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(StringBuilder))]
31 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(StringBuilder), Member = "get_Length", ReturnType = typeof(int))]
32 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(StringBuilder), Member = "Append", MemberParameters = new object[] { typeof(char) }, ReturnType = typeof(StringBuilder))]
33 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(StringBuilder), Member = "set_Length", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
34 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = "System.Text.StringBuilderCache", Member = "Release", MemberParameters = new object[] { typeof(StringBuilder) }, ReturnType = typeof(void))]
35 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ArgumentException), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
36 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 19)]
38 {
39 throw null;
40 }
41
42 [global::Cpp2ILInjected.Token(Token = "0x6000467")]
43 [global::Cpp2ILInjected.Address(RVA = "0x1EC239C", Offset = "0x1EC239C", Length = "0x104")]
44 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Regex), Member = "Replace", MemberParameters = new object[]
45 {
46 typeof(string),
47 typeof(string),
48 typeof(int),
49 typeof(int)
50 }, ReturnType = typeof(string))]
51 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
52 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WeakReference<>), Member = "TryGetTarget", MemberParameters = new object[] { "T&" }, ReturnType = typeof(bool))]
53 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Equals", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(bool))]
54 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(RegexParser), Member = "ParseReplacement", MemberParameters = new object[]
55 {
56 typeof(string),
58 typeof(int),
60 typeof(RegexOptions)
61 }, ReturnType = typeof(RegexReplacement))]
62 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WeakReference<>), Member = "SetTarget", MemberParameters = new object[] { "T" }, ReturnType = typeof(void))]
63 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
65 {
66 throw null;
67 }
68
69 [global::Cpp2ILInjected.Token(Token = "0x170000C5")]
70 public string Pattern
71 {
73 [global::Cpp2ILInjected.Token(Token = "0x6000468")]
74 [global::Cpp2ILInjected.Address(RVA = "0x1EC24A0", Offset = "0x1EC24A0", Length = "0x8")]
75 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
76 get
77 {
78 throw null;
79 }
80 }
81
82 [global::Cpp2ILInjected.Token(Token = "0x6000469")]
83 [global::Cpp2ILInjected.Address(RVA = "0x1EC24A8", Offset = "0x1EC24A8", Length = "0x178")]
84 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
85 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(RegexReplacement), Member = "Replace", MemberParameters = new object[]
86 {
88 typeof(string),
89 typeof(int),
90 typeof(int)
91 }, ReturnType = typeof(string))]
92 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
93 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<int>), Member = "get_Item", MemberParameters = new object[] { typeof(int) }, ReturnType = "T")]
94 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>), Member = "get_Item", MemberParameters = new object[] { typeof(int) }, ReturnType = "T")]
95 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(StringBuilder), Member = "Append", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(StringBuilder))]
96 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(StringBuilder), Member = "Append", MemberParameters = new object[] { typeof(ReadOnlySpan<char>) }, ReturnType = typeof(StringBuilder))]
97 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Match), Member = "LastGroupToStringImpl", ReturnType = typeof(ReadOnlySpan<char>))]
98 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Capture), Member = "GetRightSubstring", ReturnType = typeof(ReadOnlySpan<char>))]
99 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Capture), Member = "GetLeftSubstring", ReturnType = typeof(ReadOnlySpan<char>))]
100 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
102 {
103 throw null;
104 }
105
106 [global::Cpp2ILInjected.Token(Token = "0x600046A")]
107 [global::Cpp2ILInjected.Address(RVA = "0x1EC2620", Offset = "0x1EC2620", Length = "0x204")]
108 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
109 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(RegexReplacement), Member = "Replace", MemberParameters = new object[]
110 {
111 typeof(Regex),
112 typeof(string),
113 typeof(int),
114 typeof(int)
115 }, ReturnType = typeof(string))]
116 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
117 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<int>), Member = "get_Item", MemberParameters = new object[] { typeof(int) }, ReturnType = "T")]
118 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>), Member = "get_Item", MemberParameters = new object[] { typeof(int) }, ReturnType = "T")]
119 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ReadOnlySpan<char>), Member = "ToString", ReturnType = typeof(string))]
120 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Match), Member = "LastGroupToStringImpl", ReturnType = typeof(ReadOnlySpan<char>))]
121 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Capture), Member = "GetRightSubstring", ReturnType = typeof(ReadOnlySpan<char>))]
122 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Capture), Member = "GetLeftSubstring", ReturnType = typeof(ReadOnlySpan<char>))]
123 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 6)]
125 {
126 throw null;
127 }
128
129 [global::Cpp2ILInjected.Token(Token = "0x600046B")]
130 [global::Cpp2ILInjected.Address(RVA = "0x1EC2824", Offset = "0x1EC2824", Length = "0x36C")]
131 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
132 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Regex), Member = "Replace", MemberParameters = new object[]
133 {
134 typeof(string),
135 typeof(string),
136 typeof(int),
137 typeof(int)
138 }, ReturnType = typeof(string))]
139 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
140 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Regex), Member = "Match", MemberParameters = new object[]
141 {
142 typeof(string),
143 typeof(int)
144 }, ReturnType = typeof(Match))]
145 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Group), Member = "get_Success", ReturnType = typeof(bool))]
146 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = "System.Text.StringBuilderCache", Member = "Acquire", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(StringBuilder))]
147 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Regex), Member = "get_RightToLeft", ReturnType = typeof(bool))]
148 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>), Member = ".ctor", ReturnType = typeof(void))]
149 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Substring", MemberParameters = new object[]
150 {
151 typeof(int),
152 typeof(int)
153 }, ReturnType = typeof(string))]
154 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(RegexReplacement), Member = "ReplacementImplRTL", MemberParameters = new object[]
155 {
157 typeof(Match)
158 }, ReturnType = typeof(void))]
159 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Match), Member = "NextMatch", ReturnType = typeof(Match))]
160 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(StringBuilder), Member = "Append", MemberParameters = new object[]
161 {
162 typeof(string),
163 typeof(int),
164 typeof(int)
165 }, ReturnType = typeof(StringBuilder))]
166 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>), Member = "get_Item", MemberParameters = new object[] { typeof(int) }, ReturnType = "T")]
167 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(StringBuilder), Member = "Append", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(StringBuilder))]
168 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(RegexReplacement), Member = "ReplacementImpl", MemberParameters = new object[]
169 {
170 typeof(StringBuilder),
171 typeof(Match)
172 }, ReturnType = typeof(void))]
173 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = "System.Text.StringBuilderCache", Member = "GetStringAndRelease", MemberParameters = new object[] { typeof(StringBuilder) }, ReturnType = typeof(string))]
174 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ArgumentOutOfRangeException), Member = ".ctor", MemberParameters = new object[]
175 {
176 typeof(string),
177 typeof(string)
178 }, ReturnType = typeof(void))]
179 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 15)]
180 public string Replace(Regex regex, string input, int count, int startat)
181 {
182 throw null;
183 }
184
185 [global::Cpp2ILInjected.Token(Token = "0x4000363")]
186 private const int Specials = 4;
187
188 [global::Cpp2ILInjected.Token(Token = "0x4000364")]
189 public const int LeftPortion = -1;
190
191 [global::Cpp2ILInjected.Token(Token = "0x4000365")]
192 public const int RightPortion = -2;
193
194 [global::Cpp2ILInjected.Token(Token = "0x4000366")]
195 public const int LastGroup = -3;
196
197 [global::Cpp2ILInjected.Token(Token = "0x4000367")]
198 public const int WholeString = -4;
199
200 [global::Cpp2ILInjected.Token(Token = "0x4000368")]
201 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
203
204 [global::Cpp2ILInjected.Token(Token = "0x4000369")]
205 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
207
209 [global::Cpp2ILInjected.Token(Token = "0x400036A")]
210 [global::Cpp2ILInjected.FieldOffset(Offset = "0x20")]
211 private readonly string <Pattern>k__BackingField;
212 }
213}
class f__AnonymousType0<< Count > j__TPar
void ReplacementImplRTL(List< string > al, Match match)
void ReplacementImpl(StringBuilder sb, Match match)
string Replace(Regex regex, string input, int count, int startat)
RegexReplacement(string rep, RegexNode concat, Hashtable _caps)
static RegexReplacement GetOrCreate(WeakReference< RegexReplacement > replRef, string replacement, Hashtable caps, int capsize, Hashtable capnames, RegexOptions roptions)