Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ FindLastExpressionInLoopForAutoAtomic()

static RegexNode System.Text.RegularExpressions.RegexNode.FindLastExpressionInLoopForAutoAtomic ( RegexNode node,
uint maxDepth )
inlinestaticprivate

Definition at line 1011 of file RegexNode.cs.

1012 {
1013 node = node.Child(0);
1014 while (node.Type == 28)
1015 {
1016 node = node.Child(0);
1017 }
1018 if (node.Type == 25)
1019 {
1020 int num = node.ChildCount();
1021 RegexNode regexNode = node.Child(num - 1);
1022 if (CanBeMadeAtomic(regexNode, node.Child(0), maxDepth - 1))
1023 {
1024 return regexNode;
1025 }
1026 }
1027 return null;
1028 }
static bool CanBeMadeAtomic(RegexNode node, RegexNode subsequent, uint maxDepth)
RegexNode(int type, RegexOptions options)
Definition RegexNode.cs:23

References System.Text.RegularExpressions.RegexNode.CanBeMadeAtomic().

Referenced by System.Text.RegularExpressions.RegexNode.EliminateEndingBacktracking(), and System.Text.RegularExpressions.RegexNode.ReduceConcatenationWithAutoAtomic().