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

◆ IsDecimalDigitOne()

static bool System.Xml.Xsl.Runtime.CharUtil.IsDecimalDigitOne ( char ch)
inlinestatic

Definition at line 21 of file CharUtil.cs.

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 }
static UnicodeCategory GetUnicodeCategory(char ch)

References System.ch, System.Xml.Dictionary, and System.Globalization.CharUnicodeInfo.GetUnicodeCategory().

Referenced by System.Xml.Xsl.Runtime.TokenInfo.CreateFormat().