UNICODE::CANONICAL(3) | Courier Unicode Library | UNICODE::CANONICAL(3) |
NAME¶
unicode::canonical, unicode::decompose, unicode::decompose_default_reallocate, unicode::compose, unicode::compose_default_callback - 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:
Like the C callback, the C++ one gets called 0 or more times.
SEE ALSO¶
AUTHOR¶
Sam Varshavchik
NOTES¶
- 1.
- Unicode Canonical Decomposition and Composition
05/18/2024 | Courier Unicode Library |