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

◆ ScanControl()

char System.Text.RegularExpressions.RegexParser.ScanControl ( )
inlineprivate

Definition at line 1351 of file RegexParser.cs.

1352 {
1353 if (CharsRight() == 0)
1354 {
1355 throw MakeException(RegexParseError.MissingControlCharacter, System.SR.MissingControlCharacter);
1356 }
1357 char c = RightCharMoveRight();
1358 if ((uint)(c - 97) <= 25u)
1359 {
1360 c = (char)(c - 32);
1361 }
1362 if ((c = (char)(c - 64)) < ' ')
1363 {
1364 return c;
1365 }
1366 throw MakeException(RegexParseError.UnrecognizedControlCharacter, System.SR.UnrecognizedControlCharacter);
1367 }
static string UnrecognizedControlCharacter
Definition SR.cs:98
static string MissingControlCharacter
Definition SR.cs:58
Definition SR.cs:7
RegexParseException MakeException(RegexParseError error, string message)

References System.Text.RegularExpressions.RegexParser.CharsRight(), System.Text.RegularExpressions.RegexParser.MakeException(), System.SR.MissingControlCharacter, System.Text.RegularExpressions.RegexParser.RightCharMoveRight(), and System.SR.UnrecognizedControlCharacter.

Referenced by System.Text.RegularExpressions.RegexParser.ScanCharEscape().