47 if (
tree.CapNumList ==
null ||
tree.CapTop ==
tree.CapNumList.Length)
49 capsize =
tree.CapTop;
54 capsize =
tree.CapNumList.Length;
56 for (
int i = 0;
i <
tree.CapNumList.Length;
i++)
96 if (
text.Length > 1 &&
text.Length <= 50000)
183 if (
node.UseOptionR())
236 if (
node.ChildCount() > 1)
271 if (
node.ChildCount() > 2)
284 if (
node.N <
int.MaxValue ||
node.M > 1)
286 Emit((
node.M == 0) ? 26 : 27, (node.M != 0) ? (1 -
node.M) : 0);
304 if (
node.N <
int.MaxValue ||
node.M > 1)
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
void Add(TKey key, TValue value)
static CultureInfo CurrentCulture
static string Format(string resourceFormat, object p1)
static string UnexpectedOpcode
static bool OpcodeBacktracks(int Op)
static string bool CaseInsensitive ComputeLeadingSubstring(RegexTree tree)
static string bool CaseInsensitive[] ComputeMultipleCharClasses(RegexTree tree, int maxChars)
static int FindLeadingAnchor(RegexTree tree)
static string bool CaseInsensitive[] ComputeFirstCharClass(RegexTree tree)
void Emit(int op, int opd1, int opd2)
int MapCapnum(int capnum)
RegexWriter(Span< int > emittedSpan, Span< int > intStackSpan)
System.Collections.Generic.ValueListBuilder< int > _intStack
System.Collections.Generic.ValueListBuilder< int > _emitted
RegexCode RegexCodeFromRegexTree(RegexTree tree)
readonly Dictionary< string, int > _stringTable
int StringCode(string str)
void Emit(int op, int opd1)
void PatchJump(int offset, int jumpDest)
static RegexCode Write(RegexTree tree)
void EmitFragment(int nodetype, RegexNode node, int curIndex)