Module Uutf

val u_bom : Uchar.t
val u_rep : Uchar.t
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 in_channel
  2. | `Manual
  3. | `String of string
]
type nln = [
  1. | `ASCII of Uchar.t
  2. | `NLF of Uchar.t
  3. | `Readline of Uchar.t
]
type decoder
val decoder : ?nln:[< nln ] -> ?encoding:[< decoder_encoding ] -> [< src ] -> decoder
val decode : decoder -> [ `Await | `End | `Malformed of string | `Uchar of Uchar.t ]
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_byte_count : 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.t ] -> unit
type dst = [
  1. | `Buffer of Buffer.t
  2. | `Channel of out_channel
  3. | `Manual
]
type encoder
val encoder : [< encoding ] -> [< dst ] -> encoder
val encode : encoder -> [< `Await | `End | `Uchar of Uchar.t ] -> [ `Ok | `Partial ]
val encoder_encoding : encoder -> encoding
val encoder_dst : encoder -> dst
module Manual : sig ... end
module String : sig ... end
module Buffer : sig ... end