AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="0.9.11" />

.NET API 1,230,848 bytes

 CharExtensions

static class CharExtensions
Useful methods for chars.
public static int FromHex(this char c)

Converts a given character from the hex representation (0-9A-Fa-f) to an integer.

public static bool IsAlphanumericAscii(this char c)

Determines if the given character is a alphanumeric character (0-9a-zA-z) as specified here: http://www.whatwg.org/specs/web-apps/current-work/multipage/common-microsyntaxes.html#alphanumeric-ascii-characters

public static bool IsDigit(this char c)

Determines if the given character is a digit (0-9) as specified here: http://www.whatwg.org/specs/web-apps/current-work/multipage/common-microsyntaxes.html#ascii-digits

public static bool IsHex(this char c)

Determines if the given character is a hexadecimal (0-9a-fA-F) as specified here: http://www.whatwg.org/specs/web-apps/current-work/multipage/common-microsyntaxes.html#ascii-hex-digits

public static bool IsInRange(this char c, int lower, int upper)

Determines if the given character is in the given range.

public static bool IsInvalid(this int c)

Determines if the given character is invalid, i.e. zero, above the max. codepoint or in an invalid range.

public static bool IsLetter(this char c)

Gets if the character is actually a (A-Z,a-z) letter.

public static bool IsLineBreak(this char c)

Determines if the given character is a line break character as specified here: http://www.w3.org/TR/html401/struct/text.html#h-9.3.2

public static bool IsLowercaseAscii(this char c)

Determines if the given character is a lowercase character (a-z) as specified here: http://www.whatwg.org/specs/web-apps/current-work/multipage/common-microsyntaxes.html#lowercase-ascii-letters

public static bool IsName(this char c)

Gets if the character is actually a name character.

public static bool IsNameStart(this char c)

Determines if the given character is a valid character for starting an identifier.

public static bool IsNonAscii(this char c)

Gets if the character is actually a non-ascii character.

public static bool IsNonPrintable(this char c)

Gets if the character is actually a non-printable (special) character.

public static bool IsNormalPathCharacter(this char c)

Determines if the given character is allowed as-it-is in paths.

public static bool IsNormalQueryCharacter(this char c)

Determines if the given character is allowed as-it-is in queries.

public static bool IsOneOf(this char c, char a, char b)

Determines if the given character is one of the two others.

public static bool IsOneOf(this char c, char o1, char o2, char o3)

Determines if the given character is one of the three others.

public static bool IsOneOf(this char c, char o1, char o2, char o3, char o4)

Determines if the given character is one of the four others.

public static bool IsSpaceCharacter(this char c)

Determines if the given character is a space character as specified here: http://www.whatwg.org/specs/web-apps/current-work/multipage/common-microsyntaxes.html#space-character

public static bool IsUppercaseAscii(this char c)

Determines if the given character is a uppercase character (A-Z) as specified here: http://www.whatwg.org/specs/web-apps/current-work/multipage/common-microsyntaxes.html#uppercase-ascii-letters

public static bool IsUrlCodePoint(this char c)

Determines if the given character is a valid url code point as specified here: http://url.spec.whatwg.org/#url-code-points

public static bool IsWhiteSpaceCharacter(this char c)

Determines if the given character is a white-space character as specified here: http://www.whatwg.org/specs/web-apps/current-work/multipage/common-microsyntaxes.html#white_space

public static string ToHex(this byte num)

Transforms the given number to a hexadecimal string.

public static string ToHex(this char character)

Transforms the given character to a hexadecimal string.