xtd 0.2.0
Loading...
Searching...
No Matches

◆ from_hex()

static int32 xtd::uri::from_hex ( char  digit)
static

Gets the decimal value of a hexadecimal digit.

Parameters
digitThe hexadecimal digit (0-9, a-f, A-F) to convert.
Returns
int32 An int32 value that contains a number from 0 to 15 that corresponds to the specified hexadecimal digit.
Exceptions
ArgumentExceptiondigit is not a valid hexadecimal digit (0-9, a-f, A-F).
Remarks
The from_hex method converts a character representing a hexadecimal digit (0-9, a-f, A-F) to its decimal value (0 to 15). If digit is not a valid hexadecimal digit, an ArgumentException exception is thrown.