def form.one.cr

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

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

135# a character that is not `"`: CR as %0D, else on to LF
136def form.one.cr(+cp: U32, rest: String, cr: Bool) -> String:
137  match cr:
138    case True{}:
139      "%0D" ++ rest
140    case False{}:
141      form.one.lf(cp, rest, U32.is_eq(cp, 10))

Uses (6)

Used by (1)