package zed

  1. Overview
  2. Docs
Abstract engine for text edition in OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

zed-3.2.1.tbz
sha256=141091d21a03e92eed0efd96ece150c08c619bfbcd1b153a42d8a261b2b57f53
sha512=5c4c3bda52d3b8ba8618a91ac7864ebebd6020742e812d46f2a1cc78034acfc53b0a9b697424259b24fa84b367e36f154f35d4ac7ed536329294f000c7f52156

doc/zed/Zed_rope/Buffer/index.html

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 -> 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.