Show / Hide Table of Contents

Class UnicodeSpecsHelper

Helper Class which defines some Test Functions for testing the Unicode Category of Characters.

Inheritance
object
UnicodeSpecsHelper
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Parsing
Assembly: dotNetRdf.dll
Syntax
public class UnicodeSpecsHelper

Fields

| Edit this page View Source

HighSurrogateEnd

End of high surrogate range.

Declaration
public const int HighSurrogateEnd = 56319
Field Value
Type Description
int
| Edit this page View Source

HighSurrogateStart

Start of high surrogate range.

Declaration
public const int HighSurrogateStart = 55296
Field Value
Type Description
int
| Edit this page View Source

LowSurrogateEnd

End of low surrogate range.

Declaration
public const int LowSurrogateEnd = 57343
Field Value
Type Description
int
| Edit this page View Source

LowSurrogateStart

Start of low surrogate range.

Declaration
public const int LowSurrogateStart = 56320
Field Value
Type Description
int

Methods

| Edit this page View Source

ConvertToChar(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
| Edit this page View Source

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[]
| Edit this page View Source

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 highSurrogate and lowSurrogate parameters.

Exceptions
Type Condition
ArgumentOutOfRangeException

highSurrogate is not in the range U+D800 through U+DBFF, or lowSurrogate is not in the range U+DC00 through U+DFFF.

| Edit this page View Source

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
| Edit this page View Source

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 c parameter ranges from U+D800 through U+DBFF; otherwise, false.

| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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 c parameter ranges from U+DC00 through U+DFFF; otherwise, false.

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Fields
    • HighSurrogateEnd
    • HighSurrogateStart
    • LowSurrogateEnd
    • LowSurrogateStart
  • Methods
    • ConvertToChar(string)
    • ConvertToChars(string)
    • ConvertToUtf32(char, char)
    • IsDigit(char)
    • IsHighSurrogate(char)
    • IsLetter(char)
    • IsLetterModifier(char)
    • IsLetterOrDigit(char)
    • IsLowSurrogate(char)
  • Extension Methods
Back to top Generated by DocFX