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