32 references to IsNegated
System.Text.RegularExpressions.Generator (32)
RegexGenerator.Emitter.cs (8)
5082bool negated = RegexCharClass.IsNegated(node.Str) ^ negate; 5233negate ^= RegexCharClass.IsNegated(charClass); 5276negate ^= RegexCharClass.IsNegated(charClass); 5287negate ^= RegexCharClass.IsNegated(charClass); 5307negate ^= RegexCharClass.IsNegated(charClass); 5324bool negatedClass = RegexCharClass.IsNegated(charClass); 5359bool negatedClass = RegexCharClass.IsNegated(charClass); 5385negate ^= RegexCharClass.IsNegated(charClass);
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (15)
480!IsNegated(charClass) && 486!IsNegated(charClass) && 499!IsNegated(set) && 506IsNegated(set) && 620negated ^= IsNegated(set); 632/// if <see cref="IsNegated(string)"/> is true. 707if (hasSubtraction && IsNegated(set)) 778bool set1Negated = IsNegated(set1); 779bool set2Negated = IsNegated(set2); 865Debug.Assert(!IsNegated(set1) && !IsNegated(set2)); 901if (!IsNegated(subset) && CanEasilyEnumerateSetContents(subset)) 1031!IsNegated(set) && 1087bool isNegated = IsNegated(set); 1884bool negated = IsNegated(set);
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexFindOptimizations.cs (3)
131if (!RegexCharClass.IsNegated(charClass) && 142Debug.Assert(!RegexCharClass.IsNegated(charClass)); 149Debug.Assert(!RegexCharClass.IsNegated(charClass) || chars is null);
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexNode.cs (3)
1610if (RegexCharClass.IsNegated(startingLiteralNode.Str!) || 1688return new StartingLiteralData(range: (lowInclusive, highInclusive), negated: RegexCharClass.IsNegated(node.Str!)); 1695return new StartingLiteralData(setChars: setChars.Slice(0, numChars).ToString(), negated: RegexCharClass.IsNegated(node.Str!));
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (3)
156case RegexNodeKind.Set or RegexNodeKind.Setloop or RegexNodeKind.Setlazy or RegexNodeKind.Setloopatomic when !RegexCharClass.IsNegated(node.Str!): // negated sets are too complex to analyze 557result.Negated = RegexCharClass.IsNegated(result.Set); 1232!RegexCharClass.IsNegated(nextChild.Str!) &&