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