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

◆ IsSingletonInverse()

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

Definition at line 639 of file RegexCharClass.cs.

640 {
641 if (set[2] == '\0' && set[1] == '\u0002' && IsNegated(set) && !IsSubtraction(set))
642 {
643 if (set[3] != '\uffff')
644 {
645 return set[3] + 1 == set[4];
646 }
647 return true;
648 }
649 return false;
650 }
static bool IsSubtraction(string charClass)

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

Referenced by System.Text.RegularExpressions.RegexNode.ReduceSet().