#148: icu_regex_traits::translate_nocase doesn't use case-folding

In translate_nocase replace u_tolower by u_foldCase(c, U_FOLD_CASE_DEFAULT) suitable for single codeunit case folding
This commit is contained in:
Daniel Krügler
2021-08-08 18:29:12 +02:00
parent dfd700d858
commit 5ad8906e91
4 changed files with 209 additions and 2 deletions

View File

@ -187,7 +187,7 @@ namespace boost {
}
char_type translate_nocase(char_type c) const
{
return ::u_tolower(c);
return ::u_foldCase(c, U_FOLD_CASE_DEFAULT);
}
char_type translate(char_type c, bool icase) const
{

View File

@ -161,7 +161,7 @@ public:
}
char_type translate_nocase(char_type c) const
{
return ::u_tolower(c);
return ::u_foldCase(c, U_FOLD_CASE_DEFAULT);
}
char_type translate(char_type c, bool icase) const
{