def str.closed

cswap-bend-cli@0.1.0.0 · json/lex.bend:205

import cswap-bend-cli@0.1.0.0/json/lex.bend as Lex
import Base

205def str.closed(s: String, live: Bool, +esc: Bool) -> Bool:
206  match s live:
207    case SCon{+c, t} True{}:
208      str.closed(t, not(not(esc) && eqc(c, '"')), not(esc) && eqc(c, '\\'))
209    case _ l:
210      not(l)

Uses (6)

Used by (1)