56 references to One
System.Text.RegularExpressions (56)
System\Text\RegularExpressions\RegexCompiler.cs (3)
1461case RegexNodeKind.Multi or RegexNodeKind.Notone or RegexNodeKind.One or RegexNodeKind.Set: 2740case RegexNodeKind.One: 5360if (root.Kind is RegexNodeKind.Multi or RegexNodeKind.One or RegexNodeKind.Notone or RegexNodeKind.Set)
System\Text\RegularExpressions\RegexNode.cs (39)
121return new RegexNode(RegexNodeKind.One, options & ~RegexOptions.IgnoreCase, ch); 131return new RegexNode(RegexNodeKind.One, options, ch); 152Kind += kind - RegexNodeKind.One; 287case RegexNodeKind.One: 907case RegexNodeKind.One: 971Kind == RegexNodeKind.Set ? RegexNodeKind.One : 1106else if (at.Kind is RegexNodeKind.Set or RegexNodeKind.One) 1135if (prev.Kind == RegexNodeKind.One) 1145if (at.Kind == RegexNodeKind.One) 1216case RegexNodeKind.One or RegexNodeKind.Notone or RegexNodeKind.Set: 1355if (startingNode.Kind == RegexNodeKind.One) 1375if (startingNode.Kind == RegexNodeKind.One) 1420new RegexNode(RegexNodeKind.One, startingNodeOptions, startingSpan[0]) : 1434if (node.Kind == RegexNodeKind.One) 1452node.Kind = RegexNodeKind.One; 1492return branch.Kind is RegexNodeKind.One or RegexNodeKind.Multi ? branch : null; 1498Debug.Assert(Kind is RegexNodeKind.One or RegexNodeKind.Multi || (IsOneFamily && M > 0)); 1513case RegexNodeKind.One: 1548case RegexNodeKind.One or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic or RegexNodeKind.Onelazy: 1691else if (at.Kind is RegexNodeKind.Multi or RegexNodeKind.One) 1705if (prev.Kind == RegexNodeKind.One) 1712((at.Kind == RegexNodeKind.One) ? $"{prev.Str}{at.Ch}" : prev.Str + at.Str) : 1713((at.Kind == RegexNodeKind.One) ? $"{at.Ch}{prev.Str}" : at.Str + prev.Str); 1802case RegexNodeKind.Oneloop or RegexNodeKind.Onelazy when nextNode.Kind == RegexNodeKind.One && currentNode.Ch == nextNode.Ch: 1852nextNode.Kind = RegexNodeKind.One; 1870case RegexNodeKind.One when (nextNode.Kind is RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic or RegexNodeKind.Onelazy) && currentNode.Ch == nextNode.Ch: 2024RegexNodeKind.One or RegexNodeKind.Notone or RegexNodeKind.Set) 2345case RegexNodeKind.One when node.Ch != subsequent.Ch: 2375case RegexNodeKind.One when node.Ch == subsequent.Ch: 2394case RegexNodeKind.One when !RegexCharClass.CharInClass(subsequent.Ch, node.Str!): 2441case RegexNodeKind.One when !CharInStartingOrEndingSet(subsequent.Ch): 2583case RegexNodeKind.One: 2696case RegexNodeKind.One: 2850if (child.Kind is RegexNodeKind.One) 2942RegexNodeKind.One or RegexNodeKind.Notone or RegexNodeKind.Set => true, 2994case <= MultiVsRepeaterLimit when Kind == RegexNodeKind.One: 3009case RegexNodeKind.One: 3142public bool IsOneFamily => Kind is RegexNodeKind.One or RegexNodeKind.Oneloop or RegexNodeKind.Oneloopatomic or RegexNodeKind.Onelazy; 3202case RegexNodeKind.One:
System\Text\RegularExpressions\RegexNodeKind.cs (3)
26/// <remarks>The characters are specified in <see cref="RegexNode.Str"/>. This is purely a representational optimization, equivalent to multiple <see cref="One"/> nodes concatenated together.</remarks> 32/// This is purely a representational optimization, equivalent to a <see cref="Loop"/> wrapped around a <see cref="One"/>. 46/// This is purely a representational optimization, equivalent to a <see cref="Lazyloop"/> wrapped around a <see cref="One"/>.
System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (7)
112case RegexNodeKind.One or RegexNodeKind.Oneloop or RegexNodeKind.Onelazy or RegexNodeKind.Oneloopatomic when !ignoreCase || !RegexCharClass.ParticipatesInCaseConversion(node.Ch): 114int reps = node.Kind is RegexNodeKind.One ? 1 : Math.Min(node.M, MaxPrefixLength); 119return node.Kind is RegexNodeKind.One || reps == node.N; 422case RegexNodeKind.One: 600case RegexNodeKind.One: 954case RegexNodeKind.One or RegexNodeKind.Oneloop or RegexNodeKind.Onelazy or RegexNodeKind.Oneloopatomic: 959return node.Kind is RegexNodeKind.One || node.M > 0 ? true : null;
System\Text\RegularExpressions\RegexReplacement.cs (1)
54case RegexNodeKind.One:
System\Text\RegularExpressions\RegexWriter.cs (1)
381case RegexNodeKind.One:
System\Text\RegularExpressions\Symbolic\RegexNodeConverter.cs (1)
57case RegexNodeKind.One:
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>