mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-18 11:14:22 +00:00
ICU-8268 repeated conditional test
X-SVN-Rev: 30718
This commit is contained in:
parent
d96782f661
commit
a65971645c
2 changed files with 6 additions and 9 deletions
|
@ -150,15 +150,12 @@ class CharsetCompoundText extends CharsetICU {
|
|||
}
|
||||
|
||||
private static boolean isIBM912(int codepoint) {
|
||||
if ((codepoint >= 0x0102 && codepoint <= 0x0107) || (codepoint >= 0x010C && codepoint <= 0x0111) || (codepoint >= 0x0118 && codepoint <= 0x011B) ||
|
||||
(codepoint == 0x0139) || (codepoint == 0x013A) || (codepoint == 0x013D) || (codepoint == 0x013E) || (codepoint >= 0x0141 && codepoint <= 0x0144) ||
|
||||
(codepoint == 0x0147) || (codepoint == 0x0147) || (codepoint == 0x0150) || (codepoint == 0x0151) || (codepoint == 0x0154) || (codepoint == 0x0155) ||
|
||||
(codepoint >= 0x0158 && codepoint <= 0x015B) || (codepoint == 0x015E) || (codepoint == 0x015F) || (codepoint >= 0x0160 && codepoint <= 0x0165) ||
|
||||
return ((codepoint >= 0x0102 && codepoint <= 0x0107) || (codepoint >= 0x010C && codepoint <= 0x0111) || (codepoint >= 0x0118 && codepoint <= 0x011B) ||
|
||||
(codepoint == 0x0139) || (codepoint == 0x013A) || (codepoint == 0x013D) || (codepoint == 0x013E) || (codepoint >= 0x0141 && codepoint <= 0x0144) ||
|
||||
(codepoint == 0x0147) || (codepoint == 0x0150) || (codepoint == 0x0151) || (codepoint == 0x0154) || (codepoint == 0x0155) ||
|
||||
(codepoint >= 0x0158 && codepoint <= 0x015B) || (codepoint == 0x015E) || (codepoint == 0x015F) || (codepoint >= 0x0160 && codepoint <= 0x0165) ||
|
||||
(codepoint == 0x016E) || (codepoint == 0x016F) || (codepoint == 0x0170) || (codepoint == 0x0171) || (codepoint >= 0x0179 && codepoint <= 0x017E) ||
|
||||
(codepoint == 0x02C7) || (codepoint == 0x02D8) || (codepoint == 0x02D9) || (codepoint == 0x02DB) || (codepoint == 0x02DD)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
(codepoint == 0x02C7) || (codepoint == 0x02D8) || (codepoint == 0x02D9) || (codepoint == 0x02DB) || (codepoint == 0x02DD));
|
||||
}
|
||||
|
||||
private static boolean isIBM913(int codepoint) {
|
||||
|
|
|
@ -185,7 +185,7 @@ public class ICUCurrencyDisplayInfoProvider implements CurrencyDisplayInfoProvid
|
|||
if (srb != null) {
|
||||
ICUResourceBundle brb = srb.findWithFallback("beforeCurrency");
|
||||
ICUResourceBundle arb = srb.findWithFallback("afterCurrency");
|
||||
if (brb != null && brb != null) {
|
||||
if (brb != null) {
|
||||
String beforeCurrencyMatch = brb.findWithFallback("currencyMatch").getString();
|
||||
String beforeContextMatch = brb.findWithFallback("surroundingMatch").getString();
|
||||
String beforeInsert = brb.findWithFallback("insertBetween").getString();
|
||||
|
|
Loading…
Add table
Reference in a new issue