def after_quote

cswap-bend-cli@0.1.0.0 · fmt/csv.bend:130

import cswap-bend-cli@0.1.0.0/fmt/csv.bend as Csv
import Base

130def after_quote(+c: U32, +st: St) -> St:
131  sel.st(U32.is_eq(c, 34), with_mode(push(34, st), MQuoted{}),
132  sel.st(U32.is_eq(c, 44), end_field(st, MStart{}),
133  sel.st(U32.is_eq(c, 10), end_both(st),
134  sel.st(U32.is_eq(c, 13), st,
135  fail(st, "text after a closing quote")))))

Uses (10)

Used by (1)