def xml.name

gralha-xml-doc@0.1.0.1 · xml.bend:96

import gralha-xml-doc@0.1.0.1/xml.bend as Xml
import Base
import gralha-text-scan@0.1.0.1/scan.bend as U

96def xml.name(s: String, acc: String) -> U.Scan:
97  match s:
98    case SNil{}: U.Scan{U.rev(acc, ""), ""}
99    case SCon{Chr{c}, t}:
100      +cc = c
101      name.go(name.stop(cc), cc, t, acc)

Uses (6)

Used by (3)