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

◆ ReduceSet()

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

Definition at line 379 of file RegexNode.cs.

380 {
381 if (RegexCharClass.IsEmpty(Str))
382 {
383 Type = 22;
384 Str = null;
385 }
386 else if (RegexCharClass.IsSingleton(Str))
387 {
388 Ch = RegexCharClass.SingletonChar(Str);
389 Str = null;
390 Type = ((Type == 11) ? 9 : ((Type == 5) ? 3 : ((Type == 45) ? 43 : 6)));
391 }
392 else if (RegexCharClass.IsSingletonInverse(Str))
393 {
394 Ch = RegexCharClass.SingletonChar(Str);
395 Str = null;
396 Type = ((Type == 11) ? 10 : ((Type == 5) ? 4 : ((Type == 45) ? 44 : 7)));
397 }
398 return this;
399 }

References System.Text.RegularExpressions.RegexNode.Ch, System.Text.RegularExpressions.RegexCharClass.IsEmpty(), System.Text.RegularExpressions.RegexCharClass.IsSingleton(), System.Text.RegularExpressions.RegexCharClass.IsSingletonInverse(), System.Text.RegularExpressions.RegexCharClass.SingletonChar(), and System.Text.RegularExpressions.RegexNode.Str.

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