package uucp

  1. Overview
  2. Docs

Numeric properties.

Hex digits

val is_ascii_hex_digit : uchar -> bool

is_ascii_hex_digit u is true if u has the ASCII_Hex_Digit property.

val is_hex_digit : uchar -> bool

is_ascii_hex_digit u is true if u has the Hex_Digit property.

Numeric type

type numeric_type = [
  1. | `De
  2. | `Di
  3. | `None
  4. | `Nu
]

The type for numeric types.

val pp_numeric_type : Format.formatter -> numeric_type -> unit

pp_numeric_type ppf n prints an unspecified representation of n on ppf.

val numeric_type : uchar -> numeric_type

numeric_type u is u's Numeric_Type property.

Numeric value

type numeric_value = [
  1. | `Frac of int * int
  2. | `NaN
  3. | `Num of int64
]

The type for numeric values.

val pp_numeric_value : Format.formatter -> numeric_value -> unit

pp_numeric_value ppf n prints an unspecified representation of n on ppf.

val numeric_value : uchar -> [ `Frac of int * int | `NaN | `Num of int64 ]

numeric_type u is u's Numeric_Value property.

OCaml

Innovation. Community. Security.