mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 22:44:49 +00:00
ICU-1438 filter out unrelated new options bits when case-folding a code point
X-SVN-Rev: 8663
This commit is contained in:
parent
08e8447729
commit
0e4d7bb60a
1 changed files with 2 additions and 2 deletions
|
@ -1467,7 +1467,7 @@ u_foldCase(UChar32 c, uint32_t options) {
|
|||
pe=oldPE;
|
||||
} else {
|
||||
/* special case folding mappings, hardcoded */
|
||||
if(options==U_FOLD_CASE_DEFAULT && (uint32_t)(c-0x130)<=1) {
|
||||
if((options&_FOLD_CASE_OPTIONS_MASK)==U_FOLD_CASE_DEFAULT && (uint32_t)(c-0x130)<=1) {
|
||||
/* map dotted I and dotless i to U+0069 small i */
|
||||
return 0x69;
|
||||
}
|
||||
|
@ -1526,7 +1526,7 @@ u_internalFoldCase(UChar32 c,
|
|||
return length;
|
||||
} else {
|
||||
/* special case folding mappings, hardcoded */
|
||||
if(options==U_FOLD_CASE_DEFAULT && (uint32_t)(c-0x130)<=1) {
|
||||
if((options&_FOLD_CASE_OPTIONS_MASK)==U_FOLD_CASE_DEFAULT && (uint32_t)(c-0x130)<=1) {
|
||||
/* map dotted I and dotless i to U+0069 small i */
|
||||
result =0x69;
|
||||
/* goto single; */
|
||||
|
|
Loading…
Add table
Reference in a new issue