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
StringUtils.cs
Go to the documentation of this file.
1using System;
4using System.IO;
8
10{
11 // Token: 0x02000074 RID: 116
12 [Preserve]
13 internal static class StringUtils
14 {
15 // Token: 0x06000425 RID: 1061 RVA: 0x0000B654 File Offset: 0x00009854
16 public static string FormatWith(this string format, IFormatProvider provider, object arg0)
17 {
18 if (provider == null || provider != null)
19 {
20 string text;
21 return text;
22 }
24 }
25
26 // Token: 0x06000426 RID: 1062 RVA: 0x0000B670 File Offset: 0x00009870
27 public static string FormatWith(this string format, IFormatProvider provider, object arg0, object arg1)
28 {
29 if ((provider == null || provider != null) && (arg0 == null || arg0 != null))
30 {
31 string text;
32 return text;
33 }
35 }
36
37 // Token: 0x06000427 RID: 1063 RVA: 0x0000B690 File Offset: 0x00009890
38 public static string FormatWith(this string format, IFormatProvider provider, object arg0, object arg1, object arg2)
39 {
40 if ((provider == null || provider != null) && (arg0 == null || arg0 != null) && (arg1 == null || arg1 != null))
41 {
42 string text;
43 return text;
44 }
46 }
47
48 // Token: 0x06000428 RID: 1064 RVA: 0x0000B6B8 File Offset: 0x000098B8
49 public static string FormatWith(this string format, IFormatProvider provider, object arg0, object arg1, object arg2, object arg3)
50 {
51 if ((provider == null || provider != null) && (arg0 == null || arg0 != null) && (arg1 == null || arg1 != null) && (arg2 == null || arg2 != null))
52 {
53 string text;
54 return text;
55 }
57 }
58
59 // Token: 0x06000429 RID: 1065 RVA: 0x0000B6E8 File Offset: 0x000098E8
60 private static string FormatWith(this string format, IFormatProvider provider, params object[] args)
61 {
62 ValidationUtils.ArgumentNotNull("format", "format");
63 string text;
64 return text;
65 }
66
67 // Token: 0x0600042A RID: 1066 RVA: 0x0000B708 File Offset: 0x00009908
68 public static bool IsWhiteSpace(string s)
69 {
70 if (true)
71 {
72 char c;
73 bool flag = char.IsWhiteSpace(c);
74 return;
75 }
76 }
77
78 // Token: 0x0600042B RID: 1067 RVA: 0x0000212A File Offset: 0x0000032A
79 public static string NullEmptyString(string s)
80 {
81 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
82 }
83
84 // Token: 0x0600042C RID: 1068 RVA: 0x0000B728 File Offset: 0x00009928
86 {
87 /*
88An exception occurred when decompiling this method (0600042C)
89
90ICSharpCode.Decompiler.DecompilerException: Error decompiling System.IO.StringWriter Newtonsoft.Json.Utilities.StringUtils::CreateStringWriter(System.Int32)
91
92 ---> System.Exception: Basic block has to end with unconditional control flow.
93{
94 IL_0003:
95 stloc:CultureInfo(var_1_0A, callgetter:CultureInfo(CultureInfo::get_InvariantCulture))
96}
97
98 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
99 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
100 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
101 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
102 --- End of inner exception stack trace ---
103 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
104 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
105*/;
106 }
107
108 // Token: 0x0600042D RID: 1069 RVA: 0x0000B740 File Offset: 0x00009940
109 public static int? GetLength(string value)
110 {
111 }
112
113 // Token: 0x0600042E RID: 1070 RVA: 0x0000B750 File Offset: 0x00009950
114 public static void ToCharAsUnicode(char c, char[] buffer)
115 {
116 }
117
118 // Token: 0x0600042F RID: 1071 RVA: 0x0000B760 File Offset: 0x00009960
120 {
121 while (source == null)
122 {
123 }
124 return "source";
125 }
126
127 // Token: 0x06000430 RID: 1072 RVA: 0x0000B778 File Offset: 0x00009978
128 public static string ToCamelCase(string s)
129 {
130 char c;
131 bool flag = char.IsUpper(c);
132 long num = 0L;
133 bool flag2 = char.IsUpper(c);
134 if (num != 0L)
135 {
136 bool flag3 = char.IsUpper(c);
137 }
139 char c2 = char.ToLower(c, invariantCulture);
140 string text;
141 return text;
142 }
143
144 // Token: 0x06000431 RID: 1073 RVA: 0x0000B7C4 File Offset: 0x000099C4
145 public static bool IsHighSurrogate(char c)
146 {
147 if (!true)
148 {
149 }
150 bool flag;
151 return flag;
152 }
153
154 // Token: 0x06000432 RID: 1074 RVA: 0x0000B7D8 File Offset: 0x000099D8
155 public static bool IsLowSurrogate(char c)
156 {
157 if (!true)
158 {
159 }
160 bool flag;
161 return flag;
162 }
163
164 // Token: 0x06000433 RID: 1075 RVA: 0x0000B7EC File Offset: 0x000099EC
165 public static bool StartsWith(this string source, char value)
166 {
167 }
168
169 // Token: 0x06000434 RID: 1076 RVA: 0x0000B7FC File Offset: 0x000099FC
170 public static bool EndsWith(this string source, char value)
171 {
172 }
173
174 // Token: 0x04000203 RID: 515
175 public const string CarriageReturnLineFeed = "\r\n";
176
177 // Token: 0x04000204 RID: 516
178 public const string Empty = "";
179
180 // Token: 0x04000205 RID: 517
181 public const char CarriageReturn = '\r';
182
183 // Token: 0x04000206 RID: 518
184 public const char LineFeed = '\n';
185
186 // Token: 0x04000207 RID: 519
187 public const char Tab = '\t';
188
189 // Token: 0x02000075 RID: 117
192 {
193 // Token: 0x06000435 RID: 1077 RVA: 0x0000B80C File Offset: 0x00009A0C
195 {
196 }
197
198 // Token: 0x06000436 RID: 1078 RVA: 0x0000B820 File Offset: 0x00009A20
200 {
201 Func func = this.valueSelector;
202 string text = this.testValue;
203 bool flag;
204 return flag;
205 }
206
207 // Token: 0x06000437 RID: 1079 RVA: 0x0000B83C File Offset: 0x00009A3C
209 {
210 Func func = this.valueSelector;
211 string text = this.testValue;
212 bool flag;
213 return flag;
214 }
215
216 // Token: 0x04000208 RID: 520
218
219 // Token: 0x04000209 RID: 521
220 public string testValue;
221 }
222 }
223}
class f__AnonymousType0<< Count > j__TPar
static string NullEmptyString(string s)
static string FormatWith(this string format, IFormatProvider provider, object arg0, object arg1, object arg2)
static void ToCharAsUnicode(char c, char[] buffer)
static string ToCamelCase(string s)
static string FormatWith(this string format, IFormatProvider provider, params object[] args)
static StringWriter CreateStringWriter(int capacity)
static string FormatWith(this string format, IFormatProvider provider, object arg0, object arg1, object arg2, object arg3)
static bool EndsWith(this string source, char value)
static bool IsWhiteSpace(string s)
static TSource ForgivingCaseSensitiveFind< TSource >(this IEnumerable< TSource > source, Func< TSource, string > valueSelector, string testValue)
static bool StartsWith(this string source, char value)
static string FormatWith(this string format, IFormatProvider provider, object arg0)
static string FormatWith(this string format, IFormatProvider provider, object arg0, object arg1)
static ? int GetLength(string value)
static void ArgumentNotNull(object value, string parameterName)
static CultureInfo InvariantCulture