def image.svg.byte.text

gralha-svg-render@0.1.0.1 · svg.bend:3801

import gralha-svg-render@0.1.0.1/svg.bend as Svg
import Base
import gralha-text-scan@0.1.0.1/scan.bend as U
import gralha-bytes@0.1.0.1/bytes.bend as Bin

3801def image.svg.byte.text(+data: Bin.Bytes, +at: U32, +acc: String) -> String:
3802  U.branch(String, U32.is_ge(at, Bin.bytes.size(data)), _ => U.rev(acc, ""), _ => image.svg.utf8.more(image.svg.utf8(data, at), acc, step => text => image.svg.byte.text(data, (at + step : U32), text)))

Uses (10)

Used by (1)