mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* enc/iso_8859_4.c, enc/iso_8859_10.c, enc/iso_8859_14.c,
enc/iso_8859_15.c, enc/iso_8859_16.c: Replace case-by-case code with lookup in ENC_ISO_8859_xx_TO_LOWER_CASE table. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f12e9cea99
commit
b5d869a89d
6 changed files with 11 additions and 50 deletions
|
|
@ -250,14 +250,7 @@ case_map(OnigCaseFoldType* flagP, const OnigUChar** pp,
|
|||
else if ((EncISO_8859_4_CtypeTable[code] & BIT_CTYPE_UPPER)
|
||||
&& (flags & (ONIGENC_CASE_DOWNCASE|ONIGENC_CASE_FOLD))) {
|
||||
flags |= ONIGENC_CASE_MODIFIED;
|
||||
if (code>=0xA0 && code<=0xBF) {
|
||||
if (code==0xBD)
|
||||
code += 0x02;
|
||||
else
|
||||
code += 0x10;
|
||||
}
|
||||
else
|
||||
code += 0x20;
|
||||
code = ENC_ISO_8859_4_TO_LOWER_CASE(code);
|
||||
}
|
||||
else if ((EncISO_8859_4_CtypeTable[code]&BIT_CTYPE_LOWER)
|
||||
&& (flags&ONIGENC_CASE_UPCASE)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue