Common Lisp Package: CL-GAP-BUFFER

Gap buffer API.

README:

FUNCTION

Public

GAP-BUFFER-BACKSPACE (BUF)

Backward-delete a character in the gap buffer BUF.

GAP-BUFFER-CLEAR (BUF)

Clear the contents of the gap buffer BUF.

GAP-BUFFER-COMPONENTS (BUF)

Return the string before the gap and after the gap in the gap buffer BUF.

GAP-BUFFER-DELETE (BUF)

Forward-delete a character in the gap buffer BUF.

GAP-BUFFER-INSERT-CHAR (BUF CHAR)

Insert a character CHAR into a gap buffer BUF at the gap, resizing if needed.

GAP-BUFFER-INSERT-STRING (BUF STRING)

Insert a string STRING into the gap buffer BUF.

GAP-BUFFER-LENGTH (BUF)

Find the length of the gap buffer BUF. Analogous to LENGTH.

GAP-BUFFER-MOVE-LEFT (BUF)

Move the gap left in the gap buffer BUF.

GAP-BUFFER-MOVE-RIGHT (BUF)

Move the gap to the right in the gap buffer BUF.

GAP-BUFFER-STRING (BUF)

Format a gap buffer BUF into a string.

MAKE-GAP-BUFFER (&OPTIONAL LENGTH)

Make a new gap buffer of size LENGTH.

Undocumented

GAP-BUFFER-P (OBJECT)

Private

BUF.DATA (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

BUF.GAP-END (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

BUF.GAP-START (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

Undocumented

SETFBUF.DATA (NEW-VALUE INSTANCE)

SETFBUF.GAP-END (NEW-VALUE INSTANCE)

SETFBUF.GAP-START (NEW-VALUE INSTANCE)

COPY-GAP-BUFFER (INSTANCE)

GAP-BUFFER-GAP-LENGTH (BUF)

GAP-BUFFER-PRINT-FUNCTION (BUF STREAM DEPTH)

MAKE-RAW-GAP-BUFFER (&KEY ((DATA DUM0) NIL) ((GAP-START DUM1) NIL) ((GAP-END DUM2) NIL))

VARIABLE

Public

*GAP-BUFFER-GROWTH*

Positive integer specifying how much the buffer should grow if the gap closes.

CLASS

Public

Undocumented

GAP-BUFFER