Chars.Hex
val is : char -> bool
(is c) is true iff c is an ASCII hexadecimal digit.
(is c)
true
c
val digit : int -> char
(digit i) is the character representing the the number i.
(digit i)
i
Invalid_argument
if i is not in the range [0,15].
[0,15]
val int : char -> int
(int c) is the integer represented by the digit character c.
(int c)
if c is not in the range ['0','9'], ['A','F'], or ['a','f'].
['0','9']
['A','F']
['a','f']