unicode::canonical - Man Page

unicode canonical normalization and denormalization

Synopsis

#include <courier-unicode.h>

constexpr int decompose_flag_qc=UNICODE_DECOMPOSE_FLAG_QC;
constexpr int decompose_flag_compat=UNICODE_DECOMPOSE_FLAG_COMPAT;

constexpr int compose_flag_removeunused=UNICODE_COMPOSE_FLAG_REMOVEUNUSED;
constexpr int compose_flag_oneshot=UNICODE_COMPOSE_FLAG_ONESHOT;

void decompose_default_reallocate(std::u32string &string, const std::vector<std::tuple<size_t, size_t>> &list);

void decompose(std::u32string &string, int flags=0, const std::function<void (std::u32string &, const std::vector<std::tuple<size_t, size_t>>)> &reallocate=decompose_default_reallocate);

void compose_default_callback(unicode_composition_t &compositions);

void compose(std::u32string &string, int flags=0, const std::function<void (unicode_composition_t &)> &cb=compose_default_reallocate);

Description

These functions implement the C++ interface for the Unicode Canonical Decomposition and Composition[1], See the description of the underlying unicode_canonical(3) C library API for more information. C++ specific notes:

See Also

courier-unicode(7), unicode_canonical(3).

Author

Sam Varshavchik

Author

Notes

1.

Unicode Canonical Decomposition and Composition
https://www.unicode.org/reports/tr15/tr15-50.html

Referenced By

courier-unicode(7), unicode_canonical(3).

The man pages unicode::compose(3), unicode::compose_default_callback(3), unicode::decompose(3) and unicode::decompose_default_reallocate(3) are aliases of unicode::canonical(3).

05/31/2022 Courier Unicode Library