sig
  type buf
  val create : int -> Main.Type.UCS4.Buf.buf
  val contents : Main.Type.UCS4.Buf.buf -> Main.Type.UCS4.t
  val clear : Main.Type.UCS4.Buf.buf -> unit
  val reset : Main.Type.UCS4.Buf.buf -> unit
  val add_char : Main.Type.UCS4.Buf.buf -> Main.Type.UChar.t -> unit
  val add_string : Main.Type.UCS4.Buf.buf -> Main.Type.UCS4.t -> unit
  val add_buffer : Main.Type.UCS4.Buf.buf -> Main.Type.UCS4.Buf.buf -> unit
end