def text.case.one

ezsys@0.1.0.0 · src/str.bend:284

import ezsys@0.1.0.0/src/str.bend as Str
import Base

284# a multiple mapping's text, or the rules' one code point
285def text.case.one(
286  got: Maybe<&2, String>,
287  +cp: U32,
288  rules: List<&2, Rule>
289) -> String:
290  match got:
291    case Some{s}:
292      s
293    case None{}:
294      SCon{Chr{text.case.apply(rules, cp)}, SNil{}}

Uses (7)

Used by (1)