Equivalent to strnicmp for UTF-8?

What do I use to make case-insensitive comparisons of two UTF-8 encoded tweaks? Essentially, I'm looking for a function strnicmpfor UTF-8.

+3
source share
2 answers

Case conversion rules in various Unicode scenarios are deadly complicated, requiring large conversion tables. You cannot do it yourself; you will need a library. ICU is one of them.

+2
source

strcoll UTF8, , . , . , wchars (mbrtowc), wcscasecmp, , , GNU, ... .

+1

Source: https://habr.com/ru/post/1748050/


All Articles