package base

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

Module Uchar.Decode_resultSource

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

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

true iff t represents a Unicode scalar value.

Sourceval bytes_consumed : t -> int

Number of bytes consumed to decode t.

Sourceval uchar : t -> uchar option

Returns the corresponding uchar if is_valid t.

Sourceval uchar_exn : t -> uchar

Like uchar. Raises if not (is_valid t).

Sourceval uchar_or_replacement_char : t -> uchar

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

OCaml

Innovation. Community. Security.