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

◆ ParseRecursive()

static RegexCharClass System.Text.RegularExpressions.RegexCharClass.ParseRecursive ( string charClass,
int start )
inlinestaticprivate

Definition at line 1032 of file RegexCharClass.cs.

1033 {
1034 int num = charClass[start + 1];
1035 int num2 = charClass[start + 2];
1036 int num3 = start + 3 + num + num2;
1037 int num4 = start + 3;
1038 int num5 = num4 + num;
1039 List<SingleRange> list = null;
1040 if (num > 0)
1041 {
1042 list = new List<SingleRange>(num);
1043 while (num4 < num5)
1044 {
1045 char first = charClass[num4];
1046 num4++;
1047 char last = ((num4 < num5) ? ((char)(charClass[num4] - 1)) : '\uffff');
1048 num4++;
1049 list.Add(new SingleRange(first, last));
1050 }
1051 }
1053 if (charClass.Length > num3)
1054 {
1056 }
1057 StringBuilder categories = null;
1058 if (num2 > 0)
1059 {
1060 categories = new StringBuilder().Append(charClass.AsSpan(num5, num2));
1061 }
1063 }
void Add(TKey key, TValue value)
static RegexCharClass ParseRecursive(string charClass, int start)

References System.Text.RegularExpressions.RegexCharClass.RegexCharClass(), System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Text.StringBuilder.Append(), System.Text.RegularExpressions.RegexCharClass.IsNegated(), System.list, System.Text.RegularExpressions.RegexCharClass.ParseRecursive(), and System.start.

Referenced by System.Text.RegularExpressions.RegexCharClass.Parse(), and System.Text.RegularExpressions.RegexCharClass.ParseRecursive().