def nfc.step

bend-kit-unicode@0.1.0.0 · unicode.bend:134

import bend-kit-unicode@0.1.0.0/unicode.bend as Unicode
import Base
import bend-kit-unicode@0.1.0.0/tables.bend as T

134# c joins the starter unless a mark between them has class 0 or at least c's class.
135def nfc.step(z: Nfc, +c: U32) -> Nfc:
136  Nfc{+has, +s, +last, pend, out} = z
137  +k = T.ccc(c)
138  nfc.try(Bool.and(has, Bool.not(Bool.and(U32.is_ne(last, 0), U32.is_le(k, last)))), has, s, last, pend, out, c, k)

Uses (8)

Used by (1)