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

◆ OptionFromCode()

static RegexOptions System.Text.RegularExpressions.RegexParser.OptionFromCode ( char ch)
inlinestaticprivate

Definition at line 1498 of file RegexParser.cs.

1499 {
1500 if ((uint)(ch - 65) <= 25u)
1501 {
1502 ch = (char)(ch + 32);
1503 }
1504 return ch switch
1505 {
1506 'i' => RegexOptions.IgnoreCase,
1507 'r' => RegexOptions.RightToLeft,
1508 'm' => RegexOptions.Multiline,
1509 'n' => RegexOptions.ExplicitCapture,
1510 's' => RegexOptions.Singleline,
1511 'x' => RegexOptions.IgnorePatternWhitespace,
1512 'e' => RegexOptions.ECMAScript,
1513 _ => RegexOptions.None,
1514 };
1515 }

References System.ch.

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