def text.case.target

ezsys@0.1.0.0 · src/str.bend:234

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

234# where a rule maps a code point it covers
235def text.case.target(rule: Rule, +cp: U32) -> U32:
236  match rule:
237    case Rule{+lo, _hi, _step, +to}:
238      (to + (cp - lo) : U32)

Uses (4)

Used by (1)