wpm : portable unicode tolower
This commit is contained in:
parent
e5ddf2fcdd
commit
b460e7f5b4
5 changed files with 250 additions and 11 deletions
|
@ -271,3 +271,7 @@ uint8_t unicode_utf8_to_byte(const std::string & utf8) {
|
|||
return map.at(utf8);
|
||||
}
|
||||
|
||||
char32_t unicode_tolower(char32_t cp) {
|
||||
auto it = unicode_map_lowercase.find(cp);
|
||||
return it == unicode_map_lowercase.end() ? cp : it->second;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue