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
RegexReplacement.cs
Go to the documentation of this file.
1using System;
6
8{
9 // Token: 0x020000C1 RID: 193
10 internal sealed class RegexReplacement
11 {
12 // Token: 0x06000466 RID: 1126 RVA: 0x0001288C File Offset: 0x00010A8C
14 {
15 int ntype = concat.NType;
16 StringBuilder stringBuilder = StringBuilderCache.Acquire(16);
17 long num = 0L;
18 List<RegexNode> children = concat.Children;
19 if (children != null)
20 {
21 int size = children._size;
22 }
23 RegexNode regexNode = concat.Child((int)num);
25 string str = regexNode.Str;
26 StringBuilder stringBuilder2 = stringBuilder.Append(str);
27 }
28
29 // Token: 0x06000467 RID: 1127 RVA: 0x00012940 File Offset: 0x00010B40
35
36 // Token: 0x170000C5 RID: 197
37 // (get) Token: 0x06000468 RID: 1128 RVA: 0x00012950 File Offset: 0x00010B50
38 public string Pattern
39 {
41 get
42 {
43 return this.<Pattern>k__BackingField;
44 }
45 }
46
47 // Token: 0x06000469 RID: 1129 RVA: 0x00012964 File Offset: 0x00010B64
49 {
50 int size = this._rules._size;
52 }
53
54 // Token: 0x0600046A RID: 1130 RVA: 0x00002050 File Offset: 0x00000250
56 {
57 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
58 }
59
60 // Token: 0x0600046B RID: 1131 RVA: 0x000129BC File Offset: 0x00010BBC
61 public string Replace(Regex regex, string input, int count, int startat)
62 {
63 int stringLength = input._stringLength;
64 if (count != 0)
65 {
67 bool success = match.Success;
68 StringBuilder stringBuilder = StringBuilderCache.Acquire(16);
69 bool rightToLeft = regex.RightToLeft;
70 int stringLength2 = input._stringLength;
71 int <Index>k__BackingField = match.<Index>k__BackingField;
72 string <Text>k__BackingField = match.<Text>k__BackingField;
73 return input.Substring(1073741824, startat);
74 }
75 return input;
76 }
77
78 // Token: 0x04000363 RID: 867
79 private const int Specials = 4;
80
81 // Token: 0x04000364 RID: 868
82 public const int LeftPortion = -1;
83
84 // Token: 0x04000365 RID: 869
85 public const int RightPortion = -2;
86
87 // Token: 0x04000366 RID: 870
88 public const int LastGroup = -3;
89
90 // Token: 0x04000367 RID: 871
91 public const int WholeString = -4;
92
93 // Token: 0x04000368 RID: 872
95
96 // Token: 0x04000369 RID: 873
98
99 // Token: 0x0400036A RID: 874
101 private readonly string <Pattern>k__BackingField;
102 }
103}
class f__AnonymousType0<< Count > j__TPar
Match(Regex regex, int capcount, string text, int begpos, int len, int startpos)
Definition Match.cs:11
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)
static StringBuilder Acquire(int capacity=16)
StringBuilder Append(char value, int repeatCount)