mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-14 17:24:01 +00:00
ICU-5410 Improve code coverage through refactorization
X-SVN-Rev: 20667
This commit is contained in:
parent
1d283c8c87
commit
6ea0cd2f7d
1 changed files with 3 additions and 4 deletions
|
@ -469,11 +469,10 @@ static ContractionTable *_cnttab_getContractionTable(CntTable *table, uint32_t e
|
|||
element &= 0xFFFFFF;
|
||||
ContractionTable *tbl = NULL;
|
||||
|
||||
if((element == 0xFFFFFF) || (tbl = table->elements[element]) == NULL) {
|
||||
return NULL;
|
||||
} else {
|
||||
return tbl;
|
||||
if(element != 0xFFFFFF) {
|
||||
tbl = table->elements[element]; /* This could also return NULL */
|
||||
}
|
||||
return tbl;
|
||||
}
|
||||
|
||||
static int32_t _cnttab_findCP(ContractionTable *tbl, UChar codePoint) {
|
||||
|
|
Loading…
Add table
Reference in a new issue