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

◆ IsDigit() [2/2]

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

Definition at line 415 of file Char.cs.

416 {
417 if (s == null)
418 {
419 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.s);
420 }
421 if ((uint)index >= (uint)s.Length)
422 {
423 ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index);
424 }
425 char c = s[index];
426 if (IsLatin1(c))
427 {
428 return IsInRange(c, '0', '9');
429 }
431 }
static UnicodeCategory GetUnicodeCategoryInternal(string value, int index)
static bool IsInRange(char c, char min, char max)
Definition Char.cs:191
static bool IsLatin1(char c)
Definition Char.cs:69

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