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

◆ ScanRegex()

RegexNode System.Text.RegularExpressions.RegexParser.ScanRegex ( )
inlineprivate

Definition at line 101 of file RegexParser.cs.

102 {
103 RegexOptions options = this._options;
104 string pattern = this._pattern;
105 int currentPos = this._currentPos;
106 int stringLength = pattern._stringLength;
107 this.ScanBlank();
108 string pattern2 = this._pattern;
109 int currentPos2 = this._currentPos;
110 RegexOptions options2 = this._options;
111 int stringLength2 = pattern2._stringLength;
112 char c = pattern2[currentPos2];
113 if (options2 == RegexOptions.None)
114 {
115 }
116 bool flag = RegexParser.IsSpecial(c);
117 bool flag2 = this.IsTrueQuantifier();
118 int currentPos3 = this._currentPos;
119 string pattern3 = this._pattern;
121 int stringLength3 = pattern3._stringLength;
122 char c2 = pattern3[currentPos2];
123 if (options2 == RegexOptions.None)
124 {
125 }
126 bool flag3 = RegexParser.IsStopperX(c2);
127 bool flag4 = this.IsTrueQuantifier();
128 int currentPos4 = this._currentPos;
129 string pattern4 = this._pattern;
131 int stringLength4 = pattern4._stringLength;
132 int currentPos5 = this._currentPos;
133 this.ScanBlank();
134 string pattern5 = this._pattern;
135 int currentPos6 = this._currentPos;
136 int stringLength5 = pattern5._stringLength;
137 long num = 0L;
138 char c3 = pattern5[currentPos6];
139 if (options2 == RegexOptions.None)
140 {
141 }
142 bool flag5 = RegexParser.IsSpecial(c3);
143 bool flag6 = RegexParser.IsQuantifier(c3);
144 int currentPos7 = this._currentPos;
146 long num2 = 0L;
147 long num3 = 0L;
148 this.AddConcatenate(currentPos2, (int)num, num3 != 0L);
149 char c4;
150 if (num2 != 0L)
151 {
152 c4 = this._pattern[currentPos2];
153 this.AddUnitOne(c4);
154 }
155 RegexOptions options3 = this._options;
156 this.AddAlternate();
157 RegexOptions options4 = this._options;
158 long num4 = 0L;
159 string text = this.ScanCharClass(c4 != '\0', num4 != 0L).ToStringClass();
160 RegexOptions options5 = this._options;
161 long num5 = 0L;
162 RegexNode regexNode = this.ScanBackslash(num5 != 0L);
164 return regexNode;
165 }
class f__AnonymousType0<< Count > j__TPar
RegexCharClass ScanCharClass(bool caseInsensitive, bool scanOnly)

References System.Text.RegularExpressions.RegexParser._currentPos, System.Text.RegularExpressions.RegexParser._options, System.Text.RegularExpressions.RegexParser._pattern, System.Text.RegularExpressions.RegexParser.AddAlternate(), System.Text.RegularExpressions.RegexParser.AddConcatenate(), System.Text.RegularExpressions.RegexParser.AddUnitOne(), System.Text.RegularExpressions.RegexParser.IsQuantifier(), System.Text.RegularExpressions.RegexParser.IsSpecial(), System.Text.RegularExpressions.RegexParser.IsStopperX(), System.Text.RegularExpressions.RegexParser.IsTrueQuantifier(), j__TPar, System.L, System.options, System.Text.RegularExpressions.RegexParser.ScanBackslash(), System.Text.RegularExpressions.RegexParser.ScanBlank(), System.Text.RegularExpressions.RegexParser.ScanCharClass(), System.text, and System.Text.RegularExpressions.RegexCharClass.ToStringClass().