33 references to StateFlags
System.Text.RegularExpressions (33)
System\Text\RegularExpressions\Symbolic\MatchingState.cs (7)
125
/// Builds a <see cref="
StateFlags
"/> with the relevant flags set.
129
internal
StateFlags
BuildStateFlags(bool isInitial)
131
StateFlags
info = 0;
135
info |=
StateFlags
.IsInitialFlag;
140
info |=
StateFlags
.CanBeNullableFlag;
143
info |=
StateFlags
.IsNullableFlag;
149
info |=
StateFlags
.SimulatesBacktrackingFlag;
System\Text\RegularExpressions\Symbolic\StateFlags.cs (13)
24
/// These extension methods for <see cref="
StateFlags
"/> make checking for the presence of flags more concise.
28
internal static bool IsInitial(this
StateFlags
info) => (info &
StateFlags
.IsInitialFlag) !=
StateFlags
.None;
29
internal static bool IsNullable(this
StateFlags
info) => (info &
StateFlags
.IsNullableFlag) !=
StateFlags
.None;
30
internal static bool CanBeNullable(this
StateFlags
info) => (info &
StateFlags
.CanBeNullableFlag) !=
StateFlags
.None;
31
internal static bool SimulatesBacktracking(this
StateFlags
info) => (info &
StateFlags
.SimulatesBacktrackingFlag) !=
StateFlags
.None;
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Automata.cs (1)
42
private
StateFlags
[] _stateFlagsArray;
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.cs (11)
191
_stateFlagsArray = new
StateFlags
[InitialDfaStateCapacity];
1058
StateFlags
flags = _stateFlagsArray[coreStateId];
1255
public static abstract
StateFlags
GetStateFlags(SymbolicRegexMatcher<TSet> matcher, in CurrentState state);
1304
public static
StateFlags
GetStateFlags(SymbolicRegexMatcher<TSet> matcher, in CurrentState state) =>
1383
StateFlags
flags = matcher._stateFlagsArray[coreStateId];
1420
public static
StateFlags
GetStateFlags(SymbolicRegexMatcher<TSet> matcher, in CurrentState state)
1426
StateFlags
flags = 0;
1432
return flags & (
StateFlags
.IsNullableFlag |
StateFlags
.CanBeNullableFlag |
StateFlags
.SimulatesBacktrackingFlag);
1642
StateFlags
flags = TStateHandler.GetStateFlags(matcher, in state);
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Sample.cs (1)
86
StateFlags
flags = SymbolicRegexMatcher<TSet>.NfaStateHandler.GetStateFlags(this, in statesWrapper);