Class UnicodeSpecsHelper
Helper Class which defines some Test Functions for testing the Unicode Category of Characters.
Inherited Members
Namespace: VDS.RDF.Parsing
Assembly: dotNetRdf.dll
Syntax
public class UnicodeSpecsHelper
Fields
| Edit this page View SourceHighSurrogateEnd
End of high surrogate range.
Declaration
public const int HighSurrogateEnd = 56319
Field Value
Type | Description |
---|---|
int |
HighSurrogateStart
Start of high surrogate range.
Declaration
public const int HighSurrogateStart = 55296
Field Value
Type | Description |
---|---|
int |
LowSurrogateEnd
End of low surrogate range.
Declaration
public const int LowSurrogateEnd = 57343
Field Value
Type | Description |
---|---|
int |
LowSurrogateStart
Start of low surrogate range.
Declaration
public const int LowSurrogateStart = 56320
Field Value
Type | Description |
---|---|
int |
Methods
| Edit this page View SourceConvertToChar(string)
Converts a Hex Escape into the relevant Unicode Character.
Declaration
public static char ConvertToChar(string hex)
Parameters
Type | Name | Description |
---|---|---|
string | hex | Hex code. |
Returns
Type | Description |
---|---|
char |
ConvertToChars(string)
Converts a Hex Escape into the relevant UTF-16 codepoints.
Declaration
public static char[] ConvertToChars(string hex)
Parameters
Type | Name | Description |
---|---|---|
string | hex |
Returns
Type | Description |
---|---|
char[] |
ConvertToUtf32(char, char)
Converts the value of a UTF-16 encoded surrogate pair into a Unicode code point.
Declaration
public static int ConvertToUtf32(char highSurrogate, char lowSurrogate)
Parameters
Type | Name | Description |
---|---|---|
char | highSurrogate | A high surrogate code point (that is, a code point ranging from U+D800 through U+DBFF). |
char | lowSurrogate | A low surrogate code point (that is, a code point ranging from U+DC00 through U+DFFF). |
Returns
Type | Description |
---|---|
int | The 21-bit Unicode code point represented by the |
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException |
|
IsDigit(char)
Checks whether a given Character is considered a Digit.
Declaration
public static bool IsDigit(char c)
Parameters
Type | Name | Description |
---|---|---|
char | c | Character to Test. |
Returns
Type | Description |
---|---|
bool |
IsHighSurrogate(char)
Indicates whether the specified char object is a high surrogate.
Declaration
public static bool IsHighSurrogate(char c)
Parameters
Type | Name | Description |
---|---|---|
char | c | The Unicode character to evaluate. |
Returns
Type | Description |
---|---|
bool | true if the numeric value of the |
IsLetter(char)
Checks whether a given Character is considered a Letter.
Declaration
public static bool IsLetter(char c)
Parameters
Type | Name | Description |
---|---|---|
char | c | Character to Test. |
Returns
Type | Description |
---|---|
bool |
IsLetterModifier(char)
Checks whether a given Character is considered a Letter Modifier.
Declaration
public static bool IsLetterModifier(char c)
Parameters
Type | Name | Description |
---|---|---|
char | c | Character to Test. |
Returns
Type | Description |
---|---|
bool |
IsLetterOrDigit(char)
Checks whether a given Character is considered a Letter or Digit.
Declaration
public static bool IsLetterOrDigit(char c)
Parameters
Type | Name | Description |
---|---|---|
char | c | Character to Test. |
Returns
Type | Description |
---|---|
bool |
IsLowSurrogate(char)
Indicates whether the specified char object is a low surrogate.
Declaration
public static bool IsLowSurrogate(char c)
Parameters
Type | Name | Description |
---|---|---|
char | c | The character to evaluate. |
Returns
Type | Description |
---|---|
bool | true if the numeric value of the |