def text.case.one
import ezsys@0.1.0.0/src/str.bend as Strimport 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{}}