Xml.attr.kind: def of gralha-xml-doc@0.1.0.1 Import: import gralha-xml-doc@0.1.0.1/xml.bend as Xml Lines 127-132 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=127&end_line=132 import Base import gralha-text-scan@0.1.0.1/scan.bend as U # The parse position after an attribute: the kind of the next character # (see attr.kind; 4 at the end of the text) with the attributes so far. # What a character starts inside a tag: 0 space, 1 the end of the tag, # 2 a self-closing slash, 3 an attribute. def attr.kind(+c: U32) -> U32: U.choose(U32, U.space(c), 0, U.choose(U32, U32.is_eq(c, 62), 1, U.choose(U32, U32.is_eq(c, 47), 2, 3))) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 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=choose https://jend.leeeet.dev/definition.txt?path=gralha-text-scan@0.1.0.1/scan.bend&name=space