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

◆ TryGetSingleRange()

static bool System.Text.RegularExpressions.RegexCharClass.TryGetSingleRange ( string set,
out char lowInclusive,
out char highInclusive )
inlinestatic

Definition at line 678 of file RegexCharClass.cs.

679 {
680 if (set[2] == '\0' && set.Length == 3 + set[1])
681 {
682 switch (set[1])
683 {
684 case '\u0001':
685 lowInclusive = set[3];
686 highInclusive = '\uffff';
687 return true;
688 case '\u0002':
689 lowInclusive = set[3];
690 highInclusive = (char)(set[4] - 1);
691 return true;
692 }
693 }
694 lowInclusive = (highInclusive = '\0');
695 return false;
696 }

Referenced by System.Text.RegularExpressions.RegexCompiler.EmitMatchCharacterClass().