57 references to Set
System.Text.RegularExpressions (57)
System\Text\RegularExpressions\RegexCompiler.cs (5)
1467
case RegexNodeKind.Multi or RegexNodeKind.Notone or RegexNodeKind.One or RegexNodeKind.
Set
:
2034
case RegexNodeKind.
Set
:
2045
case RegexNodeKind.Concatenate when child.Child(0) == startingLiteralNode && (startingLiteralNode.Kind is RegexNodeKind.One or RegexNodeKind.
Set
or RegexNodeKind.Multi):
2990
case RegexNodeKind.
Set
:
5608
if (root.Kind is RegexNodeKind.Multi or RegexNodeKind.One or RegexNodeKind.Notone or RegexNodeKind.
Set
)
System\Text\RegularExpressions\RegexNode.cs (30)
127
return new RegexNode(RegexNodeKind.
Set
, options & ~RegexOptions.IgnoreCase, stringSet);
292
case RegexNodeKind.
Set
:
336
case RegexNodeKind.
Set
:
597
RegexNodeKind.
Set
or RegexNodeKind.Setloop or RegexNodeKind.Setloopatomic or RegexNodeKind.Setlazy => ReduceSet(),
909
case RegexNodeKind.
Set
:
958
Debug.Assert(Kind is RegexNodeKind.
Set
or RegexNodeKind.Setloop or RegexNodeKind.Setloopatomic or RegexNodeKind.Setlazy);
971
Kind == RegexNodeKind.
Set
? RegexNodeKind.One :
981
Kind == RegexNodeKind.
Set
? RegexNodeKind.Notone :
1106
else if (at.Kind is RegexNodeKind.
Set
or RegexNodeKind.One)
1111
if (at.Kind == RegexNodeKind.
Set
)
1155
prev.Kind = RegexNodeKind.
Set
;
1208
case RegexNodeKind.One or RegexNodeKind.Notone or RegexNodeKind.
Set
:
1588
case RegexNodeKind.
Set
:
1625
case RegexNodeKind.
Set
or RegexNodeKind.Setloop or RegexNodeKind.Setloopatomic or RegexNodeKind.Setlazy:
1875
case RegexNodeKind.Setloop or RegexNodeKind.Setlazy when nextNode.Kind == RegexNodeKind.
Set
&& currentNode.Str == nextNode.Str:
1943
case RegexNodeKind.
Set
when (nextNode.Kind is RegexNodeKind.Setloop or RegexNodeKind.Setloopatomic or RegexNodeKind.Setlazy) && currentNode.Str == nextNode.Str:
1957
case RegexNodeKind.
Set
when nextNode.Kind == RegexNodeKind.
Set
&& currentNode.Str == nextNode.Str:
2101
RegexNodeKind.One or RegexNodeKind.Notone or RegexNodeKind.
Set
&&
2424
case RegexNodeKind.
Set
when !RegexCharClass.CharInClass(node.Ch, subsequent.Str!):
2472
case RegexNodeKind.
Set
when !RegexCharClass.MayOverlap(node.Str!, subsequent.Str!):
2519
case RegexNodeKind.
Set
when !MayOverlapStartingOrEndingSet(subsequent.Str!):
2708
case RegexNodeKind.
Set
:
2821
case RegexNodeKind.
Set
:
2998
else if (child.Kind is RegexNodeKind.
Set
||
3008
vsb.Append((char)(twoChars[0] | 0x20), child.Kind is RegexNodeKind.
Set
? 1 : child.M);
3065
RegexNodeKind.One or RegexNodeKind.Notone or RegexNodeKind.
Set
=> true,
3134
case RegexNodeKind.
Set
:
3262
public bool IsSetFamily => Kind is RegexNodeKind.
Set
or RegexNodeKind.Setloop or RegexNodeKind.Setloopatomic or RegexNodeKind.Setlazy;
3348
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) :
1143
new RegexNode(RegexNodeKind.
Set
, (_options & ~RegexOptions.IgnoreCase), (_options & RegexOptions.ECMAScript) != 0 ? RegexCharClass.ECMAWordClass : RegexCharClass.WordClass);
1148
new RegexNode(RegexNodeKind.
Set
, (_options & ~RegexOptions.IgnoreCase), (_options & RegexOptions.ECMAScript) != 0 ? RegexCharClass.NotECMAWordClass : RegexCharClass.NotWordClass);
1153
new RegexNode(RegexNodeKind.
Set
, (_options & ~RegexOptions.IgnoreCase), (_options & RegexOptions.ECMAScript) != 0 ? RegexCharClass.ECMASpaceClass : RegexCharClass.SpaceClass);
1158
new RegexNode(RegexNodeKind.
Set
, (_options & ~RegexOptions.IgnoreCase), (_options & RegexOptions.ECMAScript) != 0 ? RegexCharClass.NotECMASpaceClass : RegexCharClass.NotSpaceClass);
1163
new RegexNode(RegexNodeKind.
Set
, (_options & ~RegexOptions.IgnoreCase), (_options & RegexOptions.ECMAScript) != 0 ? RegexCharClass.ECMADigitClass : RegexCharClass.DigitClass);
1168
new RegexNode(RegexNodeKind.
Set
, (_options & ~RegexOptions.IgnoreCase), (_options & RegexOptions.ECMAScript) != 0 ? RegexCharClass.NotECMADigitClass : RegexCharClass.NotDigitClass);
1185
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
:
981
case RegexNodeKind.
Set
or RegexNodeKind.Setloop or RegexNodeKind.Setlazy or RegexNodeKind.Setloopatomic:
996
node.Kind is RegexNodeKind.
Set
|| node.M > 0 ? true :
1233
(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>