package uutf

  1. Overview
  2. Docs
On This Page
  1. Buffer encoders
Legend:
Library
Module
Module type
Parameter
Class
Class type

UTF encode characters in OCaml Buffer.t values.

Note. Since OCaml 4.06, these encoders are available in Stdlib.Buffer. You are encouraged to migrate to them.

Buffer encoders

val add_utf_8 : Stdlib.Buffer.t -> Stdlib.Uchar.t -> unit

add_utf_8 b u adds the UTF-8 encoding of u to b.

val add_utf_16be : Stdlib.Buffer.t -> Stdlib.Uchar.t -> unit

add_utf_16be b u adds the UTF-16BE encoding of u to b.

val add_utf_16le : Stdlib.Buffer.t -> Stdlib.Uchar.t -> unit

add_utf_16le b u adds the UTF-16LE encoding of u to b.

OCaml

Innovation. Community. Security.