This example covers the usage of u5e::filter with u5e::normalization_form_kc in order to normalize a utf8 string.
#include <u5e/utf8_string.hpp>
#include <u5e/filter.hpp>
#include <u5e/normalization_form_kc.hpp>
#include <stdio.h>
int main(int argc, char **argv) {
for (int i = 1; i < argc; i++) {
u5e::filter(input.grapheme_begin(), input.grapheme_end(), output,
u5e::normalization_form_kc<u5e::utf8_string>);
it != output.codepoint_cend(); it++ ) {
printf(" U+%06llx", (long long unsigned int)*it);
}
printf("\n");
}
return 0;
}