package core

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

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

type t = Base__.Import0.Stdlib.Uchar.utf_decode
val compare : t -> t -> int
val equal : t -> t -> bool
val hash_fold_t : Base.Hash.state -> t -> Base.Hash.state
val hash : t -> Base.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.