Unescape.end: def of emerging-ezhttp@0.21.0.0 Import: import emerging-ezhttp@0.21.0.0/src/unescape.bend as Unescape Lines 317-332 of emerging-ezhttp@0.21.0.0/src/unescape.bend: https://jend.leeeet.dev/read.txt?path=emerging-ezhttp@0.21.0.0/src/unescape.bend&start_line=317&end_line=332 import Base # the end of the text: a reference left open ends there, an `&`, `&#` or # `&#x` with nothing after it is text def end(st: Scan) -> String: match st: case Txt{}: "" case Amp{}: "&" case Hash{}: "&#" case HashX{x}: SCon{'&', SCon{'#', SCon{x, ""}}} case Num{hex, n}: code(n) case Name{s, len}: named(s) Uses (5): 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=emerging-ezhttp@0.21.0.0/src/unescape.bend&name=Scan https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/unescape.bend&name=code https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/unescape.bend&name=named