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

◆ IsSingleton()

static bool System.Text.RegularExpressions.RegexCharClass.IsSingleton ( string set)
inlinestatic

Definition at line 626 of file RegexCharClass.cs.

627 {
628 if (set[2] == '\0' && set[1] == '\u0002' && !IsNegated(set) && !IsSubtraction(set))
629 {
630 if (set[3] != '\uffff')
631 {
632 return set[3] + 1 == set[4];
633 }
634 return true;
635 }
636 return false;
637 }
static bool IsSubtraction(string charClass)

References System.Text.RegularExpressions.RegexCharClass.IsNegated(), and System.Text.RegularExpressions.RegexCharClass.IsSubtraction().

Referenced by System.Text.RegularExpressions.RegexInterpreter.FindFirstChar(), System.Text.RegularExpressions.RegexCompiler.GenerateFindFirstChar(), and System.Text.RegularExpressions.RegexNode.ReduceSet().