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

◆ IsUpper() [2/2]

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

Definition at line 636 of file Char.cs.

637 {
638 if (s == null)
639 {
640 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.s);
641 }
642 if ((uint)index >= (uint)s.Length)
643 {
644 ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index);
645 }
646 char c = s[index];
647 if (IsLatin1(c))
648 {
649 return (Latin1CharInfo[c] & 0x40) != 0;
650 }
652 }
static UnicodeCategory GetUnicodeCategoryInternal(string value, int index)
static ReadOnlySpan< byte > Latin1CharInfo
Definition Char.cs:21
static bool IsLatin1(char c)
Definition Char.cs:69

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