forked from boostorg/regex
#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:
1 parent
dfd700d858
commit
5ad8906e91
4 files changed
+209
-2
No files matched your search
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user