package zed

  1. Overview
  2. Docs

Module Zed_rope.BufferSource

Sourcetype t

Type of rope buffers.

Sourceval create : unit -> t

Create a new empty buffer.

Sourceval add : t -> Zed_char.t -> unit

add buffer zChar add zChar at the end of buffer.

Sourceval add_uChar : t -> CamomileLibrary.UChar.t -> unit

add buffer uChar add uChar at the end of buffer.

Sourceval add_rope : t -> rope -> unit

add buffer rope add rope at the end of buffer.

Sourceval add_string : t -> Zed_string.t -> unit

add buffer str add str at the end of buffer.

Sourceval contents : t -> rope

contents buffer returns the contents of buffer as a rope.

Sourceval reset : t -> unit

reset buffer resets buffer to its initial state.

OCaml

Innovation. Community. Security.