Next: , Previous: , Up: Normalization forms (composition and decomposition) <uninorm.h>   [Contents][Index]


13.2 Composition of Unicode characters

The following function composes a Unicode character from two Unicode characters.

Function: ucs4_t uc_composition (ucs4_t uc1, ucs4_t uc2) ΒΆ

Attempts to combine the Unicode characters uc1, uc2. uc1 is known to have canonical combining class 0.

Returns the combination of uc1 and uc2, if it exists. Returns 0 otherwise.

Not all decompositions can be recombined using this function. See the Unicode file CompositionExclusions.txt for details.