Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
CharUtil.cs
Go to the documentation of this file.
1
using
System.Globalization
;
2
3
namespace
System.Xml.Xsl.Runtime
;
4
5
internal
static
class
CharUtil
6
{
7
public
static
bool
IsAlphaNumeric
(
char
ch
)
8
{
9
int
unicodeCategory
= (int)
CharUnicodeInfo
.
GetUnicodeCategory
(
ch
);
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
}
System.Globalization.CharUnicodeInfo.GetUnicodeCategory
static UnicodeCategory GetUnicodeCategory(char ch)
Definition
CharUnicodeInfo.cs:3886
System.Globalization.CharUnicodeInfo
Definition
CharUnicodeInfo.cs:10
System.Xml.Xsl.Runtime.CharUtil.IsAlphaNumeric
static bool IsAlphaNumeric(char ch)
Definition
CharUtil.cs:7
System.Xml.Xsl.Runtime.CharUtil.IsDecimalDigitOne
static bool IsDecimalDigitOne(char ch)
Definition
CharUtil.cs:21
System.Xml.Xsl.Runtime.CharUtil
Definition
CharUtil.cs:6
System.Globalization
Definition
Calendar.cs:1
System.Xml.Xsl.Runtime
Definition
AncestorDocOrderIterator.cs:4
System.Xml.ValueHandleType.Dictionary
@ Dictionary
System.ExceptionArgument.ch
@ ch
source
System.Private.Xml
System.Xml.Xsl.Runtime
CharUtil.cs
Generated by
1.10.0