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

◆ CharInClassInternal()

static bool System.Text.RegularExpressions.RegexCharClass.CharInClassInternal ( char ch,
string set,
int start,
int setLength,
int categoryLength )
inlinestaticprivate

Definition at line 922 of file RegexCharClass.cs.

923 {
924 int num = start + 3;
925 int num2 = num + setLength;
926 while (num != num2)
927 {
928 int num3 = num + num2 >> 1;
929 if (ch < set[num3])
930 {
931 num2 = num3;
932 }
933 else
934 {
935 num = num3 + 1;
936 }
937 }
938 if ((num & 1) == (start & 1))
939 {
940 return true;
941 }
942 if (categoryLength == 0)
943 {
944 return false;
945 }
947 }
static bool CharInCategory(char ch, string set, int start, int setLength, int categoryLength)

References System.ch, System.Text.RegularExpressions.RegexCharClass.CharInCategory(), and System.start.

Referenced by System.Text.RegularExpressions.RegexCharClass.CharInClassRecursive().