u8string will get proper utf-8/unicode support, exceeding C++ STL. compare will check u8strings normalized to NFD.
Please consider that very carefully. Normalization is destructive. E.g. both Å (U+00C5) and Å (U+212B) will normalize to Å (U+0041 U+030A). There are lots of such destructive normalizations, but do you really want to consider them equal? I sure don't.
Please consider that very carefully. Normalization is destructive. E.g. both
Å
(U+00C5) andÅ
(U+212B) will normalize toÅ
(U+0041 U+030A). There are lots of such destructive normalizations, but do you really want to consider them equal? I sure don't.