terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
TextInfo.cs
Go to the documentation of this file.
1using System;
5
7{
8 // Token: 0x020005B2 RID: 1458
9 [ComVisible(true)]
12 {
13 // Token: 0x1700069F RID: 1695
14 // (get) Token: 0x06002C3D RID: 11325 RVA: 0x0006197C File Offset: 0x0005FB7C
15 internal static TextInfo Invariant
16 {
17 get
18 {
19 /*
20An exception occurred when decompiling this method (06002C3D)
21
22ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Globalization.TextInfo System.Globalization.TextInfo::get_Invariant()
23
24 ---> System.Exception: Basic block has to end with unconditional control flow.
25{
26 Block_0:
27 stloc:string(var_1_0C, ldfld:string(CultureData::sRealName, callgetter:CultureData(CultureData::get_Invariant)))
28}
29
30 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
31 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
32 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
33 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
34 --- End of inner exception stack trace ---
35 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
36 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
37*/;
38 }
39 }
40
41 // Token: 0x06002C3E RID: 11326 RVA: 0x00061998 File Offset: 0x0005FB98
43 {
45 string sRealName = cultureData.sRealName;
46 this.m_cultureName = sRealName;
47 this.m_textInfoName = sRealName;
48 }
49
50 // Token: 0x06002C3F RID: 11327 RVA: 0x000619C8 File Offset: 0x0005FBC8
53 {
54 }
55
56 // Token: 0x06002C40 RID: 11328 RVA: 0x000619D8 File Offset: 0x0005FBD8
57 private void OnDeserialized()
58 {
60 if (cultureData == null)
61 {
62 if (this.m_cultureName == null)
63 {
64 if (this.customCultureName == null)
65 {
66 int win32LangID = this.m_win32LangID;
67 if (win32LangID != 0)
68 {
69 if (cultureData == null)
70 {
71 }
73 return;
74 }
75 }
76 this.m_cultureName = "ar-SA";
77 }
78 if ("ar-SA" == null)
79 {
80 }
85 }
86 }
87
88 // Token: 0x06002C41 RID: 11329 RVA: 0x00061A58 File Offset: 0x0005FC58
91 {
92 this.OnDeserialized();
93 }
94
95 // Token: 0x06002C42 RID: 11330 RVA: 0x00061A6C File Offset: 0x0005FC6C
107
108 // Token: 0x170006A0 RID: 1696
109 // (get) Token: 0x06002C43 RID: 11331 RVA: 0x00061A98 File Offset: 0x0005FC98
110 [ComVisible(false)]
111 public string CultureName
112 {
113 get
114 {
115 return this.m_textInfoName;
116 }
117 }
118
119 // Token: 0x170006A1 RID: 1697
120 // (get) Token: 0x06002C44 RID: 11332 RVA: 0x00061AAC File Offset: 0x0005FCAC
121 [ComVisible(false)]
122 public bool IsReadOnly
123 {
124 get
125 {
126 return this.m_isReadOnly;
127 }
128 }
129
130 // Token: 0x06002C45 RID: 11333 RVA: 0x00061AC0 File Offset: 0x0005FCC0
131 [ComVisible(false)]
132 public virtual object Clone()
133 {
134 object obj = base.MemberwiseClone();
135 if (obj != null)
136 {
137 }
138 return obj;
139 }
140
141 // Token: 0x06002C46 RID: 11334 RVA: 0x00061AE0 File Offset: 0x0005FCE0
142 [ComVisible(false)]
143 public static TextInfo ReadOnly(TextInfo textInfo)
144 {
145 if (!true)
146 {
147 object obj;
148 if (obj != null)
149 {
150 }
151 }
152 throw new InvalidCastException();
153 }
154
155 // Token: 0x06002C47 RID: 11335 RVA: 0x00061AFC File Offset: 0x0005FCFC
156 internal void SetReadOnlyState(bool readOnly)
157 {
158 }
159
160 // Token: 0x06002C48 RID: 11336 RVA: 0x00061B0C File Offset: 0x0005FD0C
161 public virtual char ToLower(char c)
162 {
164 return c;
165 }
166
167 // Token: 0x06002C49 RID: 11337 RVA: 0x00061B2C File Offset: 0x0005FD2C
168 public virtual string ToLower(string str)
169 {
170 while (str == null)
171 {
172 }
173 return this.ToLowerInternal(str);
174 }
175
176 // Token: 0x06002C4A RID: 11338 RVA: 0x0000207A File Offset: 0x0000027A
177 private static char ToLowerAsciiInvariant(char c)
178 {
179 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
180 }
181
182 // Token: 0x06002C4B RID: 11339 RVA: 0x00061B44 File Offset: 0x0005FD44
183 public virtual char ToUpper(char c)
184 {
186 return c;
187 }
188
189 // Token: 0x06002C4C RID: 11340 RVA: 0x00061B64 File Offset: 0x0005FD64
190 public virtual string ToUpper(string str)
191 {
192 while (str == null)
193 {
194 }
195 return this.ToUpperInternal(str);
196 }
197
198 // Token: 0x06002C4D RID: 11341 RVA: 0x0000207A File Offset: 0x0000027A
199 internal static char ToUpperAsciiInvariant(char c)
200 {
201 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
202 }
203
204 // Token: 0x06002C4E RID: 11342 RVA: 0x0000207A File Offset: 0x0000027A
205 private static bool IsAscii(char c)
206 {
207 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
208 }
209
210 // Token: 0x170006A2 RID: 1698
211 // (get) Token: 0x06002C4F RID: 11343 RVA: 0x00061B7C File Offset: 0x0005FD7C
213 {
214 get
215 {
216 while (this.m_IsAsciiCasingSameAsInvariant != null)
217 {
218 }
220 }
221 }
222
223 // Token: 0x06002C50 RID: 11344 RVA: 0x00061BC8 File Offset: 0x0005FDC8
224 public override bool Equals(object obj)
225 {
226 if (obj != null)
227 {
228 }
229 string textInfoName = this.m_textInfoName;
230 bool flag;
231 return flag;
232 }
233
234 // Token: 0x06002C51 RID: 11345 RVA: 0x00061BE4 File Offset: 0x0005FDE4
235 public override int GetHashCode()
236 {
237 /*
238An exception occurred when decompiling this method (06002C51)
239
240ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.Globalization.TextInfo::GetHashCode()
241
242 ---> System.Exception: Basic block has to end with unconditional control flow.
243{
244 Block_0:
245 stloc:string(var_0_06, ldfld:string(TextInfo::m_textInfoName, ldloc:TextInfo(this)))
246}
247
248 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
249 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
250 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
251 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
252 --- End of inner exception stack trace ---
253 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
254 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
255*/;
256 }
257
258 // Token: 0x06002C52 RID: 11346 RVA: 0x00061BF8 File Offset: 0x0005FDF8
259 public override string ToString()
260 {
261 string sRealName = this.m_cultureData.sRealName;
262 return "TextInfo - " + sRealName;
263 }
264
265 // Token: 0x06002C53 RID: 11347 RVA: 0x00061C1C File Offset: 0x0005FE1C
270
271 // Token: 0x06002C54 RID: 11348 RVA: 0x00061C30 File Offset: 0x0005FE30
272 private string ToUpperInternal(string str)
273 {
274 /*
275An exception occurred when decompiling this method (06002C54)
276
277ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.Globalization.TextInfo::ToUpperInternal(System.String)
278
279 ---> System.Exception: Basic block has to end with unconditional control flow.
280{
281 IL_0026:
282 stloc:int32(var_6_2C, ldfld:int32(string::_stringLength, ldloc:string(str)))
283 stloc:int32(var_8_37, ldfld:int32(string::_stringLength, ldloc:string(str)))
284}
285
286 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
287 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
288 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
289 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
290 --- End of inner exception stack trace ---
291 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
292 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
293*/;
294 }
295
296 // Token: 0x06002C55 RID: 11349 RVA: 0x00061C78 File Offset: 0x0005FE78
297 private string ToLowerInternal(string str)
298 {
299 /*
300An exception occurred when decompiling this method (06002C55)
301
302ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.Globalization.TextInfo::ToLowerInternal(System.String)
303
304 ---> System.Exception: Basic block has to end with unconditional control flow.
305{
306 IL_0026:
307 stloc:int32(var_6_2C, ldfld:int32(string::_stringLength, ldloc:string(str)))
308 stloc:int32(var_8_37, ldfld:int32(string::_stringLength, ldloc:string(str)))
309}
310
311 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
312 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
313 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
314 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
315 --- End of inner exception stack trace ---
316 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
317 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
318*/;
319 }
320
321 // Token: 0x06002C56 RID: 11350 RVA: 0x00061CC0 File Offset: 0x0005FEC0
322 private char ToUpperInternal(char c)
323 {
324 int num = 1;
326 if (num == 0)
327 {
328 }
329 return c;
330 }
331
332 // Token: 0x06002C57 RID: 11351 RVA: 0x00061D78 File Offset: 0x0005FF78
333 private char ToLowerInternal(char c)
334 {
335 int num = 1;
337 if (num == 0)
338 {
339 }
340 int num2 = 7838;
341 if (num2 == 0)
342 {
343 }
344 if (num2 == 0)
345 {
346 }
347 if (num2 == 0)
348 {
349 }
350 if (num2 == 0)
351 {
352 }
353 if (num2 == 0)
354 {
355 }
356 if (22976 == 0)
357 {
358 }
359 if (22750 == 0)
360 {
361 return;
362 }
363 }
364
365 // Token: 0x06002C58 RID: 11352 RVA: 0x00061DF0 File Offset: 0x0005FFF0
369
370 // Token: 0x06002C59 RID: 11353 RVA: 0x00061E00 File Offset: 0x00060000
374
375 // Token: 0x06002C5A RID: 11354 RVA: 0x00061E14 File Offset: 0x00060014
376 internal TextInfo()
377 {
378 throw new NotSupportedException();
379 }
380
381 // Token: 0x040018A6 RID: 6310
382 [OptionalField(VersionAdded = 2)]
383 private string m_listSeparator;
384
385 // Token: 0x040018A7 RID: 6311
386 [OptionalField(VersionAdded = 2)]
387 private bool m_isReadOnly;
388
389 // Token: 0x040018A8 RID: 6312
390 [OptionalField(VersionAdded = 3)]
391 private string m_cultureName;
392
393 // Token: 0x040018A9 RID: 6313
396
397 // Token: 0x040018AA RID: 6314
399 private string m_textInfoName;
400
401 // Token: 0x040018AB RID: 6315
404
405 // Token: 0x040018AC RID: 6316
406 internal static TextInfo s_Invariant;
407
408 // Token: 0x040018AD RID: 6317
409 [OptionalField(VersionAdded = 2)]
410 private string customCultureName;
411
412 // Token: 0x040018AE RID: 6318
413 [OptionalField(VersionAdded = 1)]
414 internal int m_nDataItem;
415
416 // Token: 0x040018AF RID: 6319
417 [OptionalField(VersionAdded = 1)]
418 internal bool m_useUserOverride;
419
420 // Token: 0x040018B0 RID: 6320
421 [OptionalField(VersionAdded = 1)]
422 internal int m_win32LangID;
423
424 // Token: 0x040018B1 RID: 6321
425 private const int wordSeparatorMask = 536672256;
426 }
427}
class f__AnonymousType0<< Count > j__TPar
static CultureInfo GetCultureInfo(int culture)
TextInfo(CultureData cultureData)
Definition TextInfo.cs:42
virtual char ToUpper(char c)
Definition TextInfo.cs:183
void OnSerializing(StreamingContext ctx)
Definition TextInfo.cs:97
void SetReadOnlyState(bool readOnly)
Definition TextInfo.cs:156
void ChangeCase(ReadOnlySpan< char > source, Span< char > destination, bool toUpper)
Definition TextInfo.cs:371
void ToUpperAsciiInvariant(ReadOnlySpan< char > source, Span< char > destination)
Definition TextInfo.cs:366
void OnDeserializing(StreamingContext ctx)
Definition TextInfo.cs:52
string ToLowerInternal(string str)
Definition TextInfo.cs:297
virtual string ToUpper(string str)
Definition TextInfo.cs:190
override bool Equals(object obj)
Definition TextInfo.cs:224
string ToUpperInternal(string str)
Definition TextInfo.cs:272
virtual char ToLower(char c)
Definition TextInfo.cs:161
static TextInfo ReadOnly(TextInfo textInfo)
Definition TextInfo.cs:143
virtual string ToLower(string str)
Definition TextInfo.cs:168
static TextInfo s_Invariant
Definition TextInfo.cs:406
override string ToString()
Definition TextInfo.cs:259
static char ToUpperAsciiInvariant(char c)
Definition TextInfo.cs:199
static bool IsAscii(char c)
Definition TextInfo.cs:205
static TextInfo Invariant
Definition TextInfo.cs:16
static char ToLowerAsciiInvariant(char c)
Definition TextInfo.cs:177
void OnDeserialized(StreamingContext ctx)
Definition TextInfo.cs:90