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

◆ Parse()

static RegexTree System.Text.RegularExpressions.RegexParser.Parse ( string pattern,
RegexOptions options,
CultureInfo culture )
inlinestatic

Definition at line 92 of file RegexParser.cs.

93 {
96 regexParser.CountCaptures();
97 regexParser.Reset(options);
98 RegexNode regexNode = regexParser.ScanRegex();
99 int minRequiredLength = regexNode.ComputeMinLength();
100 string[] capsList = regexParser._capnamelist?.ToArray();
101 RegexTree result = new RegexTree(regexNode, regexParser._caps, regexParser._capnumlist, regexParser._captop, regexParser._capnames, capsList, options, minRequiredLength);
102 regexParser.Dispose();
103 return result;
104 }
RegexParser(string pattern, RegexOptions options, CultureInfo culture, Hashtable caps, int capsize, Hashtable capnames, Span< int > optionSpan)

References System.Text.RegularExpressions.RegexParser.RegexParser(), System.culture, System.Text.RegularExpressions.options, and System.Text.RegularExpressions.pattern.

Referenced by System.Text.RegularExpressions.Regex.Init().