31 references to IsNegated
System.Text.RegularExpressions (31)
System\Text\RegularExpressions\RegexCharClass.cs (14)
477
!
IsNegated
(charClass) &&
483
!
IsNegated
(charClass) &&
496
!
IsNegated
(set) &&
503
IsNegated
(set) &&
617
negated ^=
IsNegated
(set);
629
/// if <see cref="
IsNegated
(string)"/> is true.
704
if (hasSubtraction &&
IsNegated
(set))
775
bool set1Negated =
IsNegated
(set1);
776
bool set2Negated =
IsNegated
(set2);
862
Debug.Assert(!
IsNegated
(set1) && !
IsNegated
(set2));
962
!
IsNegated
(set) &&
1018
bool isNegated =
IsNegated
(set);
1843
bool negated =
IsNegated
(set);
System\Text\RegularExpressions\RegexCompiler.cs (7)
5426
bool negated = RegexCharClass.
IsNegated
(node.Str) ^ negate;
5863
NegateIf(RegexCharClass.
IsNegated
(charClass));
5925
NegateIf(RegexCharClass.
IsNegated
(charClass));
5938
bool negate = RegexCharClass.
IsNegated
(charClass);
5964
bool negatedClass = RegexCharClass.
IsNegated
(charClass);
6022
bool negatedClass = RegexCharClass.
IsNegated
(charClass);
6075
bool negate = RegexCharClass.
IsNegated
(charClass);
System\Text\RegularExpressions\RegexFindOptimizations.cs (3)
131
if (!RegexCharClass.
IsNegated
(charClass) &&
142
Debug.Assert(!RegexCharClass.
IsNegated
(charClass));
149
Debug.Assert(!RegexCharClass.
IsNegated
(charClass) || chars is null);
System\Text\RegularExpressions\RegexNode.cs (3)
1551
if (RegexCharClass.
IsNegated
(startingLiteralNode.Str!) ||
1629
return new StartingLiteralData(range: (lowInclusive, highInclusive), negated: RegexCharClass.
IsNegated
(node.Str!));
1636
return new StartingLiteralData(setChars: setChars.Slice(0, numChars).ToString(), negated: RegexCharClass.
IsNegated
(node.Str!));
System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (3)
156
case RegexNodeKind.Set or RegexNodeKind.Setloop or RegexNodeKind.Setlazy or RegexNodeKind.Setloopatomic when !RegexCharClass.
IsNegated
(node.Str!): // negated sets are too complex to analyze
557
result.Negated = RegexCharClass.
IsNegated
(result.Set);
1232
!RegexCharClass.
IsNegated
(nextChild.Str!) &&
System\Text\RegularExpressions\Symbolic\RegexNodeConverter.cs (1)
355
bool negate = RegexCharClass.
IsNegated
(set);