def form.one.lf

emerging-ezhttp@0.21.0.0 · src/form.bend:127

import emerging-ezhttp@0.21.0.0/src/form.bend as Form
import Base

127# a character that is not `"` or CR: LF as %0A, anything else as itself
128def form.one.lf(+cp: U32, rest: String, lf: Bool) -> String:
129  match lf:
130    case True{}:
131      "%0A" ++ rest
132    case False{}:
133      SCon{Chr{cp}, rest}

Uses (5)

Used by (1)