50 references to Set
System.Text.RegularExpressions (50)
System\Text\RegularExpressions\RegexNode.cs (28)
127
return new RegexNode(RegexNodeKind.
Set
, options & ~RegexOptions.IgnoreCase, stringSet);
252
case RegexNodeKind.
Set
:
296
case RegexNodeKind.
Set
:
545
RegexNodeKind.
Set
or RegexNodeKind.Setloop or RegexNodeKind.Setloopatomic or RegexNodeKind.Setlazy => ReduceSet(),
851
case RegexNodeKind.
Set
:
876
Debug.Assert(Kind is RegexNodeKind.
Set
or RegexNodeKind.Setloop or RegexNodeKind.Setloopatomic or RegexNodeKind.Setlazy);
889
Kind == RegexNodeKind.
Set
? RegexNodeKind.One :
899
Kind == RegexNodeKind.
Set
? RegexNodeKind.Notone :
997
else if (at.Kind is RegexNodeKind.
Set
or RegexNodeKind.One)
1002
if (at.Kind == RegexNodeKind.
Set
)
1046
prev.Kind = RegexNodeKind.
Set
;
1107
case RegexNodeKind.One or RegexNodeKind.Notone or RegexNodeKind.
Set
:
1404
case RegexNodeKind.
Set
:
1441
case RegexNodeKind.
Set
or RegexNodeKind.Setloop or RegexNodeKind.Setloopatomic or RegexNodeKind.Setlazy:
1691
case RegexNodeKind.Setloop or RegexNodeKind.Setlazy when nextNode.Kind == RegexNodeKind.
Set
&& currentNode.Str == nextNode.Str:
1759
case RegexNodeKind.
Set
when (nextNode.Kind is RegexNodeKind.Setloop or RegexNodeKind.Setloopatomic or RegexNodeKind.Setlazy) && currentNode.Str == nextNode.Str:
1773
case RegexNodeKind.
Set
when nextNode.Kind == RegexNodeKind.
Set
&& currentNode.Str == nextNode.Str:
2122
case RegexNodeKind.
Set
when !RegexCharClass.CharInClass(node.Ch, subsequent.Str!):
2170
case RegexNodeKind.
Set
when !RegexCharClass.MayOverlap(node.Str!, subsequent.Str!):
2264
case RegexNodeKind.
Set
:
2377
case RegexNodeKind.
Set
:
2554
else if (child.Kind is RegexNodeKind.
Set
||
2564
vsb.Append((char)(twoChars[0] | 0x20), child.Kind is RegexNodeKind.
Set
? 1 : child.M);
2636
RegexNodeKind.One or RegexNodeKind.Notone or RegexNodeKind.
Set
=> true,
2705
case RegexNodeKind.
Set
:
2833
public bool IsSetFamily => Kind is RegexNodeKind.
Set
or RegexNodeKind.Setloop or RegexNodeKind.Setloopatomic or RegexNodeKind.Setlazy;
2919
case RegexNodeKind.
Set
:
System\Text\RegularExpressions\RegexNodeKind.cs (2)
41
/// This is purely a representational optimization, equivalent to a <see cref="Loop"/> wrapped around a <see cref="
Set
"/>.
54
/// This is purely a representational optimization, equivalent to a <see cref="Lazyloop"/> wrapped around a <see cref="
Set
"/>.
System\Text\RegularExpressions\RegexParser.cs (9)
347
_unit = new RegexNode(RegexNodeKind.
Set
, _options & ~RegexOptions.IgnoreCase, setString);
403
new RegexNode(RegexNodeKind.
Set
, _options & ~RegexOptions.IgnoreCase, RegexCharClass.AnyClass) :
1096
new RegexNode(RegexNodeKind.
Set
, (_options & ~RegexOptions.IgnoreCase), (_options & RegexOptions.ECMAScript) != 0 ? RegexCharClass.ECMAWordClass : RegexCharClass.WordClass);
1101
new RegexNode(RegexNodeKind.
Set
, (_options & ~RegexOptions.IgnoreCase), (_options & RegexOptions.ECMAScript) != 0 ? RegexCharClass.NotECMAWordClass : RegexCharClass.NotWordClass);
1106
new RegexNode(RegexNodeKind.
Set
, (_options & ~RegexOptions.IgnoreCase), (_options & RegexOptions.ECMAScript) != 0 ? RegexCharClass.ECMASpaceClass : RegexCharClass.SpaceClass);
1111
new RegexNode(RegexNodeKind.
Set
, (_options & ~RegexOptions.IgnoreCase), (_options & RegexOptions.ECMAScript) != 0 ? RegexCharClass.NotECMASpaceClass : RegexCharClass.NotSpaceClass);
1116
new RegexNode(RegexNodeKind.
Set
, (_options & ~RegexOptions.IgnoreCase), (_options & RegexOptions.ECMAScript) != 0 ? RegexCharClass.ECMADigitClass : RegexCharClass.DigitClass);
1121
new RegexNode(RegexNodeKind.
Set
, (_options & ~RegexOptions.IgnoreCase), (_options & RegexOptions.ECMAScript) != 0 ? RegexCharClass.NotECMADigitClass : RegexCharClass.NotDigitClass);
1138
return new RegexNode(RegexNodeKind.
Set
, (_options & ~RegexOptions.IgnoreCase), cc.ToStringClass());
System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (7)
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
164
int reps = node.Kind is RegexNodeKind.
Set
? 1 : Math.Min(node.M, MaxPrefixLength);
209
return node.Kind is RegexNodeKind.
Set
|| reps == node.N;
633
case RegexNodeKind.
Set
:
972
case RegexNodeKind.
Set
or RegexNodeKind.Setloop or RegexNodeKind.Setlazy or RegexNodeKind.Setloopatomic:
987
node.Kind is RegexNodeKind.
Set
|| node.M > 0 ? true :
1209
(nextChild.Kind is RegexNodeKind.
Set
|| nextChild.M >= 1))
System\Text\RegularExpressions\RegexWriter.cs (1)
423
case RegexNodeKind.
Set
:
System\Text\RegularExpressions\Symbolic\RegexNodeConverter.cs (2)
65
case RegexNodeKind.
Set
:
312
Debug.Assert(node.Kind == RegexNodeKind.
Set
);
System\Text\RegularExpressions\Symbolic\SymbolicRegexKind.cs (1)
11
/// <summary>A node that matches a single character (i.e. <see cref="RegexNodeKind.One"/>, <see cref="RegexNodeKind.Notone"/>, or <see cref="RegexNodeKind.
Set
"/>).</summary>