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

◆ RegexFC() [2/3]

System.Text.RegularExpressions.RegexFC.RegexFC ( char ch,
bool not,
bool nullable,
bool caseInsensitive )
inline

Definition at line 19 of file RegexFC.cs.

20 {
21 _cc = new RegexCharClass();
22 if (not)
23 {
24 if (ch > '\0')
25 {
26 _cc.AddRange('\0', (char)(ch - 1));
27 }
28 if (ch < '\uffff')
29 {
30 _cc.AddRange((char)(ch + 1), '\uffff');
31 }
32 }
33 else
34 {
35 _cc.AddRange(ch, ch);
36 }
37 CaseInsensitive = caseInsensitive;
38 _nullable = nullable;
39 }
readonly RegexCharClass _cc
Definition RegexFC.cs:7

References System.Text.RegularExpressions.RegexFC._cc, System.Text.RegularExpressions.RegexFC._nullable, System.Text.RegularExpressions.RegexCharClass.AddRange(), System.Text.RegularExpressions.RegexFC.CaseInsensitive, and System.ch.