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
CultureData.cs
Go to the documentation of this file.
1using System;
3using System.Text;
5
7{
8 // Token: 0x020005B8 RID: 1464
9 [StructLayout(0)]
10 internal class CultureData
11 {
12 // Token: 0x06002C9D RID: 11421 RVA: 0x00062524 File Offset: 0x00060724
13 private CultureData(string name)
14 {
16 }
17
18 // Token: 0x170006B0 RID: 1712
19 // (get) Token: 0x06002C9E RID: 11422 RVA: 0x00062540 File Offset: 0x00060740
20 public static CultureData Invariant
21 {
22 get
23 {
24 if (true || ("HH:mm:ss" != null && "HH:mm:ss" == null) || ("HH:mm" != null && "HH:mm" == null) || ("hh:mm tt" != null && "hh:mm tt" == null) || ("H:mm" != null && "H:mm" == null) || "h:mm tt" == null || "h:mm tt" != null)
25 {
26 }
28 }
29 }
30
31 // Token: 0x06002C9F RID: 11423 RVA: 0x0006259C File Offset: 0x0006079C
33 {
34 }
35
36 // Token: 0x06002CA0 RID: 11424 RVA: 0x000625B0 File Offset: 0x000607B0
37 public static CultureData GetCultureData(string cultureName, bool useUserOverride, int datetimeIndex, int calendarId, int numberIndex, string iso2lang, int ansiCodePage, int oemCodePage, int macCodePage, int ebcdicCodePage, bool rightToLeft, string listSeparator)
38 {
40 }
41
42 // Token: 0x06002CA1 RID: 11425 RVA: 0x000625C4 File Offset: 0x000607C4
44 {
45 }
46
47 // Token: 0x06002CA2 RID: 11426 RVA: 0x000625D4 File Offset: 0x000607D4
49 {
50 if (this.calendars == null)
51 {
52 }
53 string text = this.sRealName;
54 bool flag = this.bUseOverrides;
57 }
58
59 // Token: 0x170006B1 RID: 1713
60 // (get) Token: 0x06002CA3 RID: 11427 RVA: 0x00062608 File Offset: 0x00060808
61 internal string[] LongTimes
62 {
63 get
64 {
65 return this.saLongTimes;
66 }
67 }
68
69 // Token: 0x170006B2 RID: 1714
70 // (get) Token: 0x06002CA4 RID: 11428 RVA: 0x0006261C File Offset: 0x0006081C
71 internal string[] ShortTimes
72 {
73 get
74 {
75 return this.saShortTimes;
76 }
77 }
78
79 // Token: 0x170006B3 RID: 1715
80 // (get) Token: 0x06002CA5 RID: 11429 RVA: 0x00062630 File Offset: 0x00060830
81 internal string SISO639LANGNAME
82 {
83 get
84 {
85 return this.sISO639Language;
86 }
87 }
88
89 // Token: 0x170006B4 RID: 1716
90 // (get) Token: 0x06002CA6 RID: 11430 RVA: 0x00062644 File Offset: 0x00060844
91 internal int IFIRSTDAYOFWEEK
92 {
93 get
94 {
95 return this.iFirstDayOfWeek;
96 }
97 }
98
99 // Token: 0x170006B5 RID: 1717
100 // (get) Token: 0x06002CA7 RID: 11431 RVA: 0x00062658 File Offset: 0x00060858
101 internal int IFIRSTWEEKOFYEAR
102 {
103 get
104 {
105 return this.iFirstWeekOfYear;
106 }
107 }
108
109 // Token: 0x170006B6 RID: 1718
110 // (get) Token: 0x06002CA8 RID: 11432 RVA: 0x0006266C File Offset: 0x0006086C
111 internal string SAM1159
112 {
113 get
114 {
115 return this.sAM1159;
116 }
117 }
118
119 // Token: 0x170006B7 RID: 1719
120 // (get) Token: 0x06002CA9 RID: 11433 RVA: 0x00062680 File Offset: 0x00060880
121 internal string SPM2359
122 {
123 get
124 {
125 return this.sPM2359;
126 }
127 }
128
129 // Token: 0x170006B8 RID: 1720
130 // (get) Token: 0x06002CAA RID: 11434 RVA: 0x00062694 File Offset: 0x00060894
131 internal string TimeSeparator
132 {
133 get
134 {
135 return this.sTimeSeparator;
136 }
137 }
138
139 // Token: 0x170006B9 RID: 1721
140 // (get) Token: 0x06002CAB RID: 11435 RVA: 0x000626A8 File Offset: 0x000608A8
141 internal int[] CalendarIds
142 {
143 get
144 {
145 if (this.waCalendars != null)
146 {
147 int[] array = this.waCalendars;
148 return "zh";
149 }
150 bool flag = this.sISO639Language == "ja";
151 int num = this.calendarId;
152 int num2 = this.calendarId;
153 int num3 = this.calendarId;
154 int num4 = this.calendarId;
155 return num3;
156 }
157 }
158
159 // Token: 0x06002CAC RID: 11436 RVA: 0x000626FC File Offset: 0x000608FC
161 {
162 /*
163An exception occurred when decompiling this method (06002CAC)
164
165ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Globalization.CalendarId[] System.Globalization.CultureData::GetCalendarIds()
166
167 ---> System.Exception: Basic block has to end with unconditional control flow.
168{
169 Block_0:
170 stloc:int32[](var_0_06, callgetter:int32[](CultureData::get_CalendarIds, ldloc:CultureData(this)))
171 stloc:int32[](var_1_0D, callgetter:int32[](CultureData::get_CalendarIds, ldloc:CultureData(this)))
172 stloc:int32[](var_3_16, callgetter:int32[](CultureData::get_CalendarIds, ldloc:CultureData(this)))
173 stloc:int32[](var_4_1D, callgetter:int32[](CultureData::get_CalendarIds, ldloc:CultureData(this)))
174}
175
176 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
177 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
178 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
179 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
180 --- End of inner exception stack trace ---
181 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
182 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
183*/;
184 }
185
186 // Token: 0x170006BA RID: 1722
187 // (get) Token: 0x06002CAD RID: 11437 RVA: 0x00062728 File Offset: 0x00060928
188 internal bool IsInvariantCulture
189 {
190 get
191 {
192 return string.IsNullOrEmpty(this.sRealName);
193 }
194 }
195
196 // Token: 0x170006BB RID: 1723
197 // (get) Token: 0x06002CAE RID: 11438 RVA: 0x00062740 File Offset: 0x00060940
198 internal string CultureName
199 {
200 get
201 {
202 return this.sRealName;
203 }
204 }
205
206 // Token: 0x170006BC RID: 1724
207 // (get) Token: 0x06002CAF RID: 11439 RVA: 0x00062754 File Offset: 0x00060954
208 internal string SCOMPAREINFO
209 {
210 get
211 {
212 return "";
213 }
214 }
215
216 // Token: 0x170006BD RID: 1725
217 // (get) Token: 0x06002CB0 RID: 11440 RVA: 0x00062768 File Offset: 0x00060968
218 internal string STEXTINFO
219 {
220 get
221 {
222 return this.sRealName;
223 }
224 }
225
226 // Token: 0x170006BE RID: 1726
227 // (get) Token: 0x06002CB1 RID: 11441 RVA: 0x0006277C File Offset: 0x0006097C
228 internal bool UseUserOverride
229 {
230 get
231 {
232 return this.bUseOverrides;
233 }
234 }
235
236 // Token: 0x06002CB2 RID: 11442 RVA: 0x00062790 File Offset: 0x00060990
237 internal string[] EraNames(int calendarId)
238 {
239 return this.GetCalendar(calendarId).saEraNames;
240 }
241
242 // Token: 0x06002CB3 RID: 11443 RVA: 0x000627AC File Offset: 0x000609AC
243 internal string[] AbbrevEraNames(int calendarId)
244 {
245 return this.GetCalendar(calendarId).saAbbrevEraNames;
246 }
247
248 // Token: 0x06002CB4 RID: 11444 RVA: 0x000627C8 File Offset: 0x000609C8
250 {
251 return this.GetCalendar(calendarId).saAbbrevEnglishEraNames;
252 }
253
254 // Token: 0x06002CB5 RID: 11445 RVA: 0x000627E4 File Offset: 0x000609E4
255 internal string[] ShortDates(int calendarId)
256 {
257 return this.GetCalendar(calendarId).saShortDates;
258 }
259
260 // Token: 0x06002CB6 RID: 11446 RVA: 0x00062800 File Offset: 0x00060A00
261 internal string[] LongDates(int calendarId)
262 {
263 return this.GetCalendar(calendarId).saLongDates;
264 }
265
266 // Token: 0x06002CB7 RID: 11447 RVA: 0x0006281C File Offset: 0x00060A1C
267 internal string[] YearMonths(int calendarId)
268 {
269 return this.GetCalendar(calendarId).saYearMonths;
270 }
271
272 // Token: 0x06002CB8 RID: 11448 RVA: 0x00062838 File Offset: 0x00060A38
273 internal string[] DayNames(int calendarId)
274 {
275 return this.GetCalendar(calendarId).saDayNames;
276 }
277
278 // Token: 0x06002CB9 RID: 11449 RVA: 0x00062854 File Offset: 0x00060A54
279 internal string[] AbbreviatedDayNames(int calendarId)
280 {
281 return this.GetCalendar(calendarId).saAbbrevDayNames;
282 }
283
284 // Token: 0x06002CBA RID: 11450 RVA: 0x00062870 File Offset: 0x00060A70
285 internal string[] MonthNames(int calendarId)
286 {
287 return this.GetCalendar(calendarId).saMonthNames;
288 }
289
290 // Token: 0x06002CBB RID: 11451 RVA: 0x0006288C File Offset: 0x00060A8C
291 internal string[] GenitiveMonthNames(int calendarId)
292 {
293 return this.GetCalendar(calendarId).saMonthGenitiveNames;
294 }
295
296 // Token: 0x06002CBC RID: 11452 RVA: 0x000628A8 File Offset: 0x00060AA8
297 internal string[] AbbreviatedMonthNames(int calendarId)
298 {
299 return this.GetCalendar(calendarId).saAbbrevMonthNames;
300 }
301
302 // Token: 0x06002CBD RID: 11453 RVA: 0x000628C4 File Offset: 0x00060AC4
304 {
305 return this.GetCalendar(calendarId).saAbbrevMonthGenitiveNames;
306 }
307
308 // Token: 0x06002CBE RID: 11454 RVA: 0x000628E0 File Offset: 0x00060AE0
309 internal string[] LeapYearMonthNames(int calendarId)
310 {
311 return this.GetCalendar(calendarId).saLeapYearMonthNames;
312 }
313
314 // Token: 0x06002CBF RID: 11455 RVA: 0x000628FC File Offset: 0x00060AFC
315 internal string MonthDay(int calendarId)
316 {
317 return this.GetCalendar(calendarId).sMonthDay;
318 }
319
320 // Token: 0x06002CC0 RID: 11456 RVA: 0x00062918 File Offset: 0x00060B18
321 internal string DateSeparator(int calendarId)
322 {
323 string[] saShortDates = this.GetCalendar(calendarId).saShortDates;
324 string text;
325 return text;
326 }
327
328 // Token: 0x06002CC1 RID: 11457 RVA: 0x0006293C File Offset: 0x00060B3C
329 private static string GetDateSeparator(string format)
330 {
331 return CultureData.GetSeparator("dyM", "dyM");
332 }
333
334 // Token: 0x06002CC2 RID: 11458 RVA: 0x00062958 File Offset: 0x00060B58
335 private static string GetSeparator(string format, string timeParts)
336 {
337 string text;
338 return text;
339 }
340
341 // Token: 0x06002CC3 RID: 11459 RVA: 0x0000207A File Offset: 0x0000027A
342 private static int IndexOfTimePart(string format, int startIndex, string timeParts)
343 {
344 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
345 }
346
347 // Token: 0x06002CC4 RID: 11460 RVA: 0x0006296C File Offset: 0x00060B6C
348 private static string UnescapeNlsString(string str, int start, int end)
349 {
350 if (!false)
351 {
352 }
353 string text;
354 return text;
355 }
356
357 // Token: 0x06002CC5 RID: 11461 RVA: 0x0000207A File Offset: 0x0000027A
358 internal static string[] ReescapeWin32Strings(string[] array)
359 {
360 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
361 }
362
363 // Token: 0x06002CC6 RID: 11462 RVA: 0x0000207A File Offset: 0x0000027A
364 internal static string ReescapeWin32String(string str)
365 {
366 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
367 }
368
369 // Token: 0x06002CC7 RID: 11463 RVA: 0x0000207A File Offset: 0x0000027A
370 private unsafe static int strlen(byte* s)
371 {
372 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
373 }
374
375 // Token: 0x06002CC8 RID: 11464 RVA: 0x00062980 File Offset: 0x00060B80
376 private unsafe static string idx2string(byte* data, int idx)
377 {
378 return Encoding.UTF8.GetString(data, idx);
379 }
380
381 // Token: 0x06002CC9 RID: 11465 RVA: 0x0006299C File Offset: 0x00060B9C
382 private int[] create_group_sizes_array(int gs0, int gs1)
383 {
384 }
385
386 // Token: 0x06002CCA RID: 11466 RVA: 0x000629AC File Offset: 0x00060BAC
388 {
389 bool flag = string.IsNullOrEmpty(this.sRealName);
390 int num = this.numberIndex;
391 int[] array;
393 int[] array2;
395 string text;
397 string text2;
399 string text3;
401 string text4;
403 string text5;
405 string text6;
407 string text7;
409 string text8;
411 string text9;
413 string text10;
415 string text11;
417 string text12;
419 int numberDecimalDigits = nfi.numberDecimalDigits;
420 int[] numberGroupSizes = nfi.numberGroupSizes;
421 nfi.percentDecimalDigits = numberDecimalDigits;
422 nfi.percentGroupSizes = numberGroupSizes;
423 }
424
425 // Token: 0x06002CCB RID: 11467 RVA: 0x0000207A File Offset: 0x0000027A
427 {
428 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
429 }
430
431 // Token: 0x040018BD RID: 6333
432 private string sAM1159;
433
434 // Token: 0x040018BE RID: 6334
435 private string sPM2359;
436
437 // Token: 0x040018BF RID: 6335
438 private string sTimeSeparator;
439
440 // Token: 0x040018C0 RID: 6336
441 private string[] saLongTimes;
442
443 // Token: 0x040018C1 RID: 6337
444 private string[] saShortTimes;
445
446 // Token: 0x040018C2 RID: 6338
447 private int iFirstDayOfWeek;
448
449 // Token: 0x040018C3 RID: 6339
450 private int iFirstWeekOfYear;
451
452 // Token: 0x040018C4 RID: 6340
453 private int[] waCalendars;
454
455 // Token: 0x040018C5 RID: 6341
457
458 // Token: 0x040018C6 RID: 6342
459 private string sISO639Language;
460
461 // Token: 0x040018C7 RID: 6343
462 private readonly string sRealName;
463
464 // Token: 0x040018C8 RID: 6344
465 private bool bUseOverrides;
466
467 // Token: 0x040018C9 RID: 6345
468 private int calendarId;
469
470 // Token: 0x040018CA RID: 6346
471 private int numberIndex;
472
473 // Token: 0x040018CB RID: 6347
475
476 // Token: 0x040018CC RID: 6348
478
479 // Token: 0x040018CD RID: 6349
481
482 // Token: 0x040018CE RID: 6350
484
485 // Token: 0x040018CF RID: 6351
486 private bool isRightToLeft;
487
488 // Token: 0x040018D0 RID: 6352
489 private string sListSeparator;
490
491 // Token: 0x040018D1 RID: 6353
492 private static CultureData s_Invariant;
493
494 // Token: 0x020005B9 RID: 1465
496 {
497 // Token: 0x040018D2 RID: 6354
499
500 // Token: 0x040018D3 RID: 6355
502
503 // Token: 0x040018D4 RID: 6356
505
506 // Token: 0x040018D5 RID: 6357
508
509 // Token: 0x040018D6 RID: 6358
511
512 // Token: 0x040018D7 RID: 6359
514
515 // Token: 0x040018D8 RID: 6360
517
518 // Token: 0x040018D9 RID: 6361
519 internal int currency_symbol;
520
521 // Token: 0x040018DA RID: 6362
522 internal int nan_symbol;
523
524 // Token: 0x040018DB RID: 6363
526
527 // Token: 0x040018DC RID: 6364
528 internal int negative_sign;
529
530 // Token: 0x040018DD RID: 6365
532
533 // Token: 0x040018DE RID: 6366
535
536 // Token: 0x040018DF RID: 6367
538
539 // Token: 0x040018E0 RID: 6368
541
542 // Token: 0x040018E1 RID: 6369
544
545 // Token: 0x040018E2 RID: 6370
547
548 // Token: 0x040018E3 RID: 6371
549 internal int per_mille_symbol;
550
551 // Token: 0x040018E4 RID: 6372
553
554 // Token: 0x040018E5 RID: 6373
556
557 // Token: 0x040018E6 RID: 6374
558 internal int percent_symbol;
559
560 // Token: 0x040018E7 RID: 6375
562
563 // Token: 0x040018E8 RID: 6376
564 internal int positive_sign;
565 }
566 }
567}
class f__AnonymousType0<< Count > j__TPar
static string GetDateSeparator(string format)
string[] GenitiveMonthNames(int calendarId)
string[] AbbreviatedMonthNames(int calendarId)
static unsafe int strlen(byte *s)
string[] AbbreviatedEnglishEraNames(int calendarId)
string[] ShortDates(int calendarId)
string[] LongDates(int calendarId)
static unsafe byte * fill_number_data(int index, CultureData.NumberFormatEntryManaged nfe)
void fill_culture_data(int datetimeIndex)
static CultureData GetCultureData(string cultureName, bool useUserOverride, int datetimeIndex, int calendarId, int numberIndex, string iso2lang, int ansiCodePage, int oemCodePage, int macCodePage, int ebcdicCodePage, bool rightToLeft, string listSeparator)
string[] AbbreviatedDayNames(int calendarId)
string[] AbbrevEraNames(int calendarId)
static unsafe string idx2string(byte *data, int idx)
int[] create_group_sizes_array(int gs0, int gs1)
static CultureData GetCultureData(string cultureName, bool useUserOverride)
static string UnescapeNlsString(string str, int start, int end)
string[] AbbreviatedGenitiveMonthNames(int calendarId)
string[] YearMonths(int calendarId)
static string[] ReescapeWin32Strings(string[] array)
string[] MonthNames(int calendarId)
CalendarData GetCalendar(int calendarId)
string MonthDay(int calendarId)
static string GetSeparator(string format, string timeParts)
static int IndexOfTimePart(string format, int startIndex, string timeParts)
string[] LeapYearMonthNames(int calendarId)
void GetNFIValues(NumberFormatInfo nfi)
string[] DayNames(int calendarId)
string DateSeparator(int calendarId)
string[] EraNames(int calendarId)
static string ReescapeWin32String(string str)
static Encoding UTF8
Definition Encoding.cs:828
unsafe string GetString(byte *bytes, int byteCount)
Definition Encoding.cs:653