package uutf

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type uchar = int
val u_bom : uchar
val u_rep : uchar
val is_uchar : int -> bool
val cp_to_string : int -> string
val pp_cp : Format.formatter -> int -> unit
type encoding = [
  1. | `UTF_16
  2. | `UTF_16BE
  3. | `UTF_16LE
  4. | `UTF_8
]
type decoder_encoding = [
  1. | `ISO_8859_1
  2. | `US_ASCII
  3. | `UTF_16
  4. | `UTF_16BE
  5. | `UTF_16LE
  6. | `UTF_8
]
val encoding_of_string : string -> decoder_encoding option
val encoding_to_string : [< decoder_encoding ] -> string
type src = [
  1. | `Channel of Pervasives.in_channel
  2. | `Manual
  3. | `String of string
]
type nln = [
  1. | `ASCII of uchar
  2. | `NLF of uchar
  3. | `Readline of uchar
]
type decoder
val decoder : ?nln:[< nln ] -> ?encoding:[< decoder_encoding ] -> [< src ] -> decoder
val decode : decoder -> [ `Await | `End | `Malformed of string | `Uchar of uchar ]
val decoder_encoding : decoder -> decoder_encoding
val set_decoder_encoding : decoder -> [< decoder_encoding ] -> unit
val decoder_line : decoder -> int
val decoder_col : decoder -> int
val decoder_count : decoder -> int
val decoder_removed_bom : decoder -> bool
val decoder_src : decoder -> src
val decoder_nln : decoder -> nln option
val pp_decode : Format.formatter -> [< `Await | `End | `Malformed of string | `Uchar of uchar ] -> unit
type dst = [
  1. | `Buffer of Buffer.t
  2. | `Channel of Pervasives.out_channel
  3. | `Manual
]
type encoder
val encoder : [< encoding ] -> [< dst ] -> encoder
val encode : encoder -> [< `Await | `End | `Uchar of uchar ] -> [ `Ok | `Partial ]
val encoder_encoding : encoder -> encoding
val encoder_dst : encoder -> dst
module Manual : sig ... end
module String : sig ... end
module Buffer : sig ... end
OCaml

Innovation. Community. Security.