try-compose ( state new-char current-class -- state )


Vocabulary
unicode.normalize.private

Inputs
statean object
new-charan object
current-classan object


Outputs
statean object


Definition


:: try-compose ( state new-char current-class -- state )
state last-class>> current-class =
[ new-char state push-after ] [
state char>> new-char combine-chars
[ state swap >>char ]
[ new-char state push-after current-class >>last-class ]
if*
] if ; inline