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

◆ IsDigit() [1/2]

static bool System.Char.IsDigit ( char c)
inlinestatic

Definition at line 182 of file Char.cs.

183 {
184 if (IsLatin1(c))
185 {
186 return IsInRange(c, '0', '9');
187 }
188 return CharUnicodeInfo.GetUnicodeCategory(c) == UnicodeCategory.DecimalDigitNumber;
189 }
static UnicodeCategory GetUnicodeCategory(char ch)
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.GetUnicodeCategory(), System.Char.IsInRange(), and System.Char.IsLatin1().