def until.decoded
import gralha-xml-doc@0.1.0.1/xml.bend as Xmlimport Base
import gralha-text-scan@0.1.0.1/scan.bend as U
73def until.decoded(s: String, +end: U32, acc: String) -> U.Scan:
74 match s:
75 case SNil{}: U.Scan{rev.decode(acc, ""), ""}
76 case SCon{Chr{c}, t}:
77 +cc = c
78 until.decoded.go(U32.is_eq(cc, end), cc, t, end, acc)