Skip to content

Rose::StringUtility::hexadecimalToInt

Convert an ASCII hexadecimal character to an integer.

Synopsis

Declared in <src/Rose/StringUtility/StringToNumber.h>

[[visibility]]
unsigned int
hexadecimalToInt(char);

Description

Converts the characters 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b, c, d, e, f, A, B, C, D, E, and F into their hexadecimal integer equivalents. Returns zero if the input character is not in this set.

Return Value

Integer value for the character, or zero on failure.

Created with MrDocs