21 references to Set
System.Text.RegularExpressions (21)
System\Text\RegularExpressions\RegexCompiler.cs (7)
867
primarySet.
Set
!= RegexCharClass.NotNewLineClass &&
868
primarySet.
Set
!= RegexCharClass.AnyClass;
965
else if (RegexCharClass.IsUnicodeCategoryOfSmallCharCount(primarySet.
Set
, out char[]? setChars, out bool negated, out _))
983
if (!RegexCharClass.CharInClass((char)i, primarySet.
Set
))
1036
EmitMatchCharacterClass(primarySet.
Set
);
1129
EmitMatchCharacterClass(sets[setIndex].
Set
);
1228
EmitMatchCharacterClass(set.
Set
);
System\Text\RegularExpressions\RegexFindOptimizations.cs (6)
325
/// <summary>Whether the <see cref="
Set
"/> is negated.</summary>
493
string set = FixedDistanceSets![0].
Set
;
677
if (RegexCharClass.CharInClass(span[i], primarySet.
Set
, ref startingAsciiLookup))
771
if (!RegexCharClass.CharInClass(c, nextSet.
Set
, ref _asciiLookups![i]))
790
if (!RegexCharClass.CharInClass(c, primarySet.
Set
, ref startingAsciiLookup))
799
if (!RegexCharClass.CharInClass(c, nextSet.
Set
, ref _asciiLookups![i]))
System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (8)
523
$"{nameof(TryFindRawFixedSets)} should have only populated {nameof(r.
Set
)} and {nameof(r.Distance)}"));
530
if (results[i].
Set
== RegexCharClass.AnyClass)
532
results.RemoveAll(s => s.
Set
== RegexCharClass.AnyClass);
557
result.Negated = RegexCharClass.IsNegated(result.
Set
);
559
if (RegexCharClass.TryGetSingleRange(result.
Set
, out char lowInclusive, out char highInclusive) &&
566
int count = RegexCharClass.GetSetChars(result.
Set
, scratch);
744
if (value.Set.TryAddCharClass(RegexCharClass.Parse(fixedSet.
Set
)))
752
combined[fixedSet.Distance] = (RegexCharClass.Parse(fixedSet.
Set
), 1);