nsIUnicodeNormalizer

Methods

NormalizeUnicodeNFD(aSrc, aDest)

Normalize Unicode (NFD, NFC, NFKD, NFKC).

NFD: Canonical Decomposition
NFC: Canonical Decomposition, followed by Canonical Composition
NFKD: Compatibility Decomposition
NFKC: Compatibility Decomposition, followed by Canonical Composition
Reference: Unicode Standard, TR15, Unicode Normalization Forms

Parameters

aSrc [IN] nsAString which contains an input UTF-16 string.
aDest [OUT] A pointer to an output buffer provided by a callee.

Returns

NS_OK for success,

NormalizeUnicodeNFC(aSrc, aDest)

NormalizeUnicodeNFKD(aSrc, aDest)

NormalizeUnicodeNFKC(aSrc, aDest)