Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
CharUtil.cs
Go to the documentation of this file.
2
4
5internal static class CharUtil
6{
7 public static bool IsAlphaNumeric(char ch)
8 {
10 if (unicodeCategory > 4)
11 {
12 if (unicodeCategory <= 10)
13 {
14 return unicodeCategory >= 8;
15 }
16 return false;
17 }
18 return true;
19 }
20
21 public static bool IsDecimalDigitOne(char ch)
22 {
23 int unicodeCategory = (int)CharUnicodeInfo.GetUnicodeCategory(ch = (char)(ch - 1));
24 if (unicodeCategory == 8)
25 {
26 return char.GetNumericValue(ch) == 0.0;
27 }
28 return false;
29 }
30}
static UnicodeCategory GetUnicodeCategory(char ch)
static bool IsAlphaNumeric(char ch)
Definition CharUtil.cs:7
static bool IsDecimalDigitOne(char ch)
Definition CharUtil.cs:21