package base

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Result of decoding a UTF codec that may contain invalid encodings.

val compare : t -> t -> int
val equal : t -> t -> bool
val hash_fold_t : Hash.state -> t -> Hash.state
val hash : t -> Hash.hash_value
val sexp_of_t : t -> Sexplib0.Sexp.t
val is_valid : t -> bool

true iff t represents a Unicode scalar value.

val bytes_consumed : t -> int

Number of bytes consumed to decode t.

val uchar : t -> uchar option

Returns the corresponding uchar if is_valid t.

val uchar_exn : t -> uchar

Like uchar. Raises if not (is_valid t).

val uchar_or_replacement_char : t -> uchar

Like uchar. Returns replacement_char if not (is_valid t).

OCaml

Innovation. Community. Security.