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

◆ IsWordChar()

static bool System.Text.RegularExpressions.RegexCharClass.IsWordChar ( char ch)
inlinestatic

Definition at line 844 of file RegexCharClass.cs.

845 {
847 int num = (int)ch >> 3;
848 if ((uint)num < readOnlySpan.Length)
849 {
850 return (readOnlySpan[num] & (1 << (ch & 7))) != 0;
851 }
853 if ((uint)unicodeCategory <= 5u || unicodeCategory == UnicodeCategory.DecimalDigitNumber || unicodeCategory == UnicodeCategory.ConnectorPunctuation)
854 {
855 return true;
856 }
857 if (ch != '\u200d')
858 {
859 return ch == '\u200c';
860 }
861 return true;
863 {
864 return new byte[16]
865 {
866 0, 0, 0, 0, 0, 0, 255, 3, 254, 255,
867 255, 135, 254, 255, 255, 7
868 };
869 }
870 }
static UnicodeCategory GetUnicodeCategory(char ch)

References System.ch, and System.Globalization.CharUnicodeInfo.GetUnicodeCategory().

Referenced by System.Text.RegularExpressions.RegexNode.CanBeMadeAtomic(), System.Text.RegularExpressions.RegexParser.CountCaptures(), System.Text.RegularExpressions.RegexRunner.IsBoundary(), System.Text.RegularExpressions.RegexParser.ParseProperty(), System.Text.RegularExpressions.RegexParser.ScanBasicBackslash(), System.Text.RegularExpressions.RegexParser.ScanCapname(), System.Text.RegularExpressions.RegexParser.ScanCharEscape(), System.Text.RegularExpressions.RegexParser.ScanDollar(), and System.Text.RegularExpressions.RegexParser.ScanGroupOpen().