Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ ScanOptions()

void System.Text.RegularExpressions.RegexParser.ScanOptions ( )
inlineprivate

Definition at line 1378 of file RegexParser.cs.

1379 {
1380 bool flag = false;
1381 while (CharsRight() > 0)
1382 {
1383 char c = RightChar();
1384 switch (c)
1385 {
1386 case '-':
1387 flag = true;
1388 break;
1389 case '+':
1390 flag = false;
1391 break;
1392 default:
1393 {
1394 RegexOptions regexOptions = OptionFromCode(c);
1395 if (regexOptions == RegexOptions.None || IsOnlyTopOption(regexOptions))
1396 {
1397 return;
1398 }
1399 if (flag)
1400 {
1402 }
1403 else
1404 {
1406 }
1407 break;
1408 }
1409 }
1410 MoveRight();
1411 }
1412 }
static RegexOptions OptionFromCode(char ch)
bool IsOnlyTopOption(RegexOptions options)

References System.Text.RegularExpressions.RegexParser._options, System.Text.RegularExpressions.RegexParser.CharsRight(), System.Text.RegularExpressions.RegexParser.IsOnlyTopOption(), System.Text.RegularExpressions.RegexParser.MoveRight(), System.Text.RegularExpressions.RegexParser.OptionFromCode(), and System.Text.RegularExpressions.RegexParser.RightChar().

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