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

◆ GetUnicodeCategory() [2/2]

static UnicodeCategory System.Char.GetUnicodeCategory ( string s,
int index )
inlinestatic

Definition at line 676 of file Char.cs.

677 {
678 if (s == null)
679 {
680 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.s);
681 }
682 if ((uint)index >= (uint)s.Length)
683 {
684 ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index);
685 }
686 if (IsLatin1(s[index]))
687 {
689 }
691 }
static UnicodeCategory GetUnicodeCategoryInternal(string value, int index)
static bool IsLatin1(char c)
Definition Char.cs:69
static UnicodeCategory GetLatin1UnicodeCategory(char c)
Definition Char.cs:79

References System.Char.GetLatin1UnicodeCategory(), System.Globalization.CharUnicodeInfo.GetUnicodeCategoryInternal(), System.index, System.Char.IsLatin1(), System.s, System.ThrowHelper.ThrowArgumentNullException(), and System.ThrowHelper.ThrowArgumentOutOfRangeException().