Module Chars.Hex

Hexadecimal (Base 16) Digits

val is : char -> bool

(is c) is true iff c is an ASCII hexadecimal digit.

val digit : int -> char

(digit i) is the character representing the the number i.

  • raises Invalid_argument

    if i is not in the range [0,15].

val int : char -> int

(int c) is the integer represented by the digit character c.

  • raises Invalid_argument

    if c is not in the range ['0','9'], ['A','F'], or ['a','f'].