package core

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

UTF-8 encoding. See Utf interface.

to_string encodes a Unicode scalar value in this encoding.

of_string interprets a string as one Unicode scalar value in this encoding, and raises if the string cannot be interpreted as such.

include Base.Stringable.S with type t := Base__.Import0.Stdlib.Uchar.t
val of_string : string -> Base__.Import0.Stdlib.Uchar.t
val to_string : Base__.Import0.Stdlib.Uchar.t -> string
val byte_length : Base__.Import0.Stdlib.Uchar.t -> int

Returns the number of bytes used for a given scalar value in this encoding.

val codec_name : string

The name of this encoding scheme; e.g., "UTF-8".

OCaml

Innovation. Community. Security.