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

◆ InitializeCultureForGoIfNecessary()

void System.Text.RegularExpressions.RegexCompiler.InitializeCultureForGoIfNecessary ( )
inlineprivateinherited

Definition at line 2666 of file RegexCompiler.cs.

2667 {
2668 _textInfoLocal = null;
2669 if ((_options & RegexOptions.CultureInvariant) != 0)
2670 {
2671 return;
2672 }
2673 bool flag = (_options & RegexOptions.IgnoreCase) != 0;
2674 if (!flag)
2675 {
2676 for (int i = 0; i < _codes.Length; i += RegexCode.OpcodeSize(_codes[i]))
2677 {
2678 if ((_codes[i] & 0x200) == 512)
2679 {
2680 flag = true;
2681 break;
2682 }
2683 }
2684 }
2685 if (flag)
2686 {
2689 }
2690 }

References System.Text.RegularExpressions.RegexCompiler._codes, System.Text.RegularExpressions.RegexCompiler._options, System.Text.RegularExpressions.RegexCompiler._textInfoLocal, System.Text.RegularExpressions.RegexCompiler.DeclareTextInfo(), System.Text.RegularExpressions.i, System.Text.RegularExpressions.RegexCompiler.InitLocalCultureInfo(), and System.Text.RegularExpressions.RegexCode.OpcodeSize().

Referenced by System.Text.RegularExpressions.RegexCompiler.GenerateGo(), and System.Text.RegularExpressions.RegexCompiler.TryGenerateNonBacktrackingGo().