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

◆ ToStringClass()

string System.Text.RegularExpressions.RegexCharClass.ToStringClass ( )
inline

Definition at line 281 of file RegexCharClass.cs.

282 {
283 if (!this._canonical)
284 {
285 this.Canonicalize();
286 }
287 List<RegexCharClass.SingleRange> rangelist = this._rangelist;
288 StringBuilder categories = this._categories;
289 int size = rangelist._size;
290 StringBuilder stringBuilder = StringBuilderCache.Acquire(categories.Length);
291 bool negate = this._negate;
292 StringBuilder stringBuilder2 = stringBuilder.Append(negate ? '\u0001' : '\0');
293 StringBuilder stringBuilder3 = stringBuilder.Append(negate ? '\u0001' : '\0');
294 int length = this._categories.Length;
295 StringBuilder stringBuilder4 = stringBuilder.Append((char)length);
296 int size2 = this._rangelist._size;
297 long num = 0L;
298 int size3 = this._rangelist._size;
299 int length2 = stringBuilder.Length;
300 int num2 = 1;
301 stringBuilder[num2] = (char)num;
302 StringBuilder categories2 = this._categories;
303 StringBuilder stringBuilder5 = stringBuilder.Append(categories2);
305 if (subtractor != null)
306 {
307 string text = subtractor.ToStringClass();
308 StringBuilder stringBuilder6 = stringBuilder.Append(text);
309 }
310 return StringBuilderCache.GetStringAndRelease(stringBuilder);
311 }
class f__AnonymousType0<< Count > j__TPar
List< RegexCharClass.SingleRange > _rangelist
StringBuilder Append(char value, int repeatCount)

References System.Text.RegularExpressions.RegexCharClass._canonical, System.Text.RegularExpressions.RegexCharClass._categories, System.Text.RegularExpressions.RegexCharClass._negate, System.Text.RegularExpressions.RegexCharClass._rangelist, System.Text.RegularExpressions.RegexCharClass._subtractor, System.Text.StringBuilderCache.Acquire(), System.Text.StringBuilder.Append(), System.Text.RegularExpressions.RegexCharClass.Canonicalize(), System.Text.StringBuilderCache.GetStringAndRelease(), j__TPar, System.L, System.length, System.Text.StringBuilder.Length, System.text, and System.Text.RegularExpressions.RegexCharClass.ToStringClass().

Referenced by System.Text.RegularExpressions.RegexFC.GetFirstChars(), System.Text.RegularExpressions.RegexParser.ScanRegex(), and System.Text.RegularExpressions.RegexCharClass.ToStringClass().