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

◆ ReduceConcatenation()

RegexNode System.Text.RegularExpressions.RegexNode.ReduceConcatenation ( )
inlineprivate

Definition at line 654 of file RegexNode.cs.

655 {
656 switch (ChildCount())
657 {
658 case 0:
659 return new RegexNode(23, Options);
660 case 1:
661 return Child(0);
662 default:
665 if ((Options & RegexOptions.RightToLeft) == 0)
666 {
668 }
669 return ReplaceNodeIfUnnecessary(23);
670 }
671 }
RegexNode ReplaceNodeIfUnnecessary(int emptyTypeIfNoChildren)
Definition RegexNode.cs:269
RegexNode(int type, RegexOptions options)
Definition RegexNode.cs:23

References System.Text.RegularExpressions.RegexNode.RegexNode(), System.Text.RegularExpressions.RegexNode.Child(), System.Text.RegularExpressions.RegexNode.ChildCount(), System.Text.RegularExpressions.RegexNode.Options, System.Text.RegularExpressions.RegexNode.ReduceConcatenationWithAdjacentLoops(), System.Text.RegularExpressions.RegexNode.ReduceConcatenationWithAdjacentStrings(), System.Text.RegularExpressions.RegexNode.ReduceConcatenationWithAutoAtomic(), and System.Text.RegularExpressions.RegexNode.ReplaceNodeIfUnnecessary().

Referenced by System.Text.RegularExpressions.RegexNode.Reduce().