Xml.entities.loop: def of gralha-xml-doc@0.1.0.1 Import: import gralha-xml-doc@0.1.0.1/xml.bend as Xml Lines 349-357 of gralha-xml-doc@0.1.0.1/xml.bend: https://jend.leeeet.dev/read.txt?path=gralha-xml-doc@0.1.0.1/xml.bend&start_line=349&end_line=357 import Base import gralha-text-scan@0.1.0.1/scan.bend as U def entities.loop(s: String, +acc: String) -> String: match s: case SNil{}: U.rev(acc, "") case SCon{Chr{c}, t}: +ch = c +tail = t U.branch(String, U32.is_eq(ch, 38), _ => entities.more(U.until(tail, 59, ""), acc, rest => text => entities.loop(rest, text)), _ => entities.loop(tail, SCon{Chr{ch}, acc})) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_eq https://jend.leeeet.dev/definition.txt?path=gralha-text-scan@0.1.0.1/scan.bend&name=branch https://jend.leeeet.dev/definition.txt?path=gralha-text-scan@0.1.0.1/scan.bend&name=rev https://jend.leeeet.dev/definition.txt?path=gralha-text-scan@0.1.0.1/scan.bend&name=until https://jend.leeeet.dev/definition.txt?path=gralha-xml-doc@0.1.0.1/xml.bend&name=entities.more