No matching definitions.

notebook/cell

src/notebook/cell.tur
defn

attr-name

(attr-name [attr : int])
defn

attr-value

(attr-value [attr : int])
defn

parse-attrs

(parse-attrs [s : cstr])

parse a Quarto-style attribute block from a fence info string.

defn

attr-get

(attr-get [attrs : int name : cstr fallback : cstr])

fetch an attribute value or return the provided default.

defn

attr-get-bool

(attr-get-bool [attrs : int name : cstr fallback : int])

parse a boolean attribute into 0 or 1.

defn

attr-get-int

(attr-get-int [attrs : int name : cstr fallback : int])

parse an integer attribute with a default fallback.

defn

cell-make

(cell-make [id : cstr lang : int source : cstr attrs : int start-line : int end-line : int])

create a notebook cell handle.

defn

cell-id

(cell-id [cell : int])
defn

cell-lang

(cell-lang [cell : int])
defn

cell-source

(cell-source [cell : int])
defn

cell-set-source!

(cell-set-source! [cell : int source : cstr])

replace a Cell's source text in place.

defn

cell-attrs

(cell-attrs [cell : int])
defn

cell-start-line

(cell-start-line [cell : int])
defn

cell-end-line

(cell-end-line [cell : int])
defn

attrs-free

(attrs-free [attrs : int])

release an attrs list and every Attr in it.

defn

attrs-copy

(attrs-copy [attrs : int])

deep-copy an attrs list. cell-make stores the list it is

defn

cell-free

(cell-free [cell : int])

release a Cell, including the attrs list it owns.

defn

cells-free

(cells-free [cells : int])

release a cons list of Cells and the list's own cells.

defn

cells-assign-ids

(cells-assign-ids [cells : int])

fill in missing cell ids with sequential cell-N names.

Internal definitions
__cell-nil-value
__cell-list-nil?
__cell-cons
__cell-head
__cell-tail
__cell-cstr-eq?
__cell-str-concat
__cell-int->cstr
__reverse-list
__attr-make
__cell-cons-free-- free one cons cell, leaving its head alone.
__cell-noop-- void no-op, so a cleanup-only `if` has void on both arms.
__assign-cell-id-- give `cell` the id "cell-<idx>" if it has none.
__cells-assign-ids-walk