base
Uchar.Decode_result
Result of decoding a UTF codec that may contain invalid encodings.
base.base_internalhash_types
base.md5
base.shadow_stdlib
type t = Uchar.utf_decode
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.
true
t
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.
uchar
is_valid t
val uchar_exn : t -> uchar
Like uchar. Raises if not (is_valid t).
not (is_valid t)
val uchar_or_replacement_char : t -> uchar
Like uchar. Returns replacement_char if not (is_valid t).
replacement_char