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

◆ IsLetter() [2/2]

static bool System.Char.IsLetter ( string s,
int index )
inlinestatic

Definition at line 433 of file Char.cs.

434 {
435 if (s == null)
436 {
437 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.s);
438 }
439 if ((uint)index >= (uint)s.Length)
440 {
441 ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index);
442 }
443 char c = s[index];
444 if (IsAscii(c))
445 {
446 return (Latin1CharInfo[c] & 0x60) != 0;
447 }
449 }
static UnicodeCategory GetUnicodeCategoryInternal(string value, int index)
static ReadOnlySpan< byte > Latin1CharInfo
Definition Char.cs:21
static bool CheckLetter(UnicodeCategory uc)
Definition Char.cs:201
static bool IsAscii(char c)
Definition Char.cs:74

References System.Char.CheckLetter(), System.Globalization.CharUnicodeInfo.GetUnicodeCategoryInternal(), System.index, System.Char.IsAscii(), System.Char.Latin1CharInfo, System.s, System.ThrowHelper.ThrowArgumentNullException(), and System.ThrowHelper.ThrowArgumentOutOfRangeException().