Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ScanDecimal()

int System.Text.RegularExpressions.RegexParser.ScanDecimal ( )
inlineprivate

Definition at line 1298 of file RegexParser.cs.

1299 {
1300 int num = 0;
1301 int num2;
1302 while (CharsRight() > 0 && (uint)(num2 = (ushort)(RightChar() - 48)) <= 9u)
1303 {
1304 MoveRight();
1305 if (num > 214748364 || (num == 214748364 && num2 > 7))
1306 {
1307 throw MakeException(RegexParseError.QuantifierOrCaptureGroupOutOfRange, System.SR.QuantifierOrCaptureGroupOutOfRange);
1308 }
1309 num = num * 10 + num2;
1310 }
1311 return num;
1312 }
static string QuantifierOrCaptureGroupOutOfRange
Definition SR.cs:24
Definition SR.cs:7
RegexParseException MakeException(RegexParseError error, string message)

References System.Text.RegularExpressions.RegexParser.CharsRight(), System.Text.RegularExpressions.RegexParser.MakeException(), System.Text.RegularExpressions.RegexParser.MoveRight(), System.SR.QuantifierOrCaptureGroupOutOfRange, and System.Text.RegularExpressions.RegexParser.RightChar().

Referenced by System.Text.RegularExpressions.RegexParser.CountCaptures(), System.Text.RegularExpressions.RegexParser.ScanBasicBackslash(), System.Text.RegularExpressions.RegexParser.ScanDollar(), System.Text.RegularExpressions.RegexParser.ScanGroupOpen(), and System.Text.RegularExpressions.RegexParser.ScanRegex().