mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 08:53:20 +00:00
ICU-9669 Roll back change 32889
X-SVN-Rev: 32890
This commit is contained in:
parent
02197c648e
commit
eb81df537c
1 changed files with 3 additions and 10 deletions
|
@ -1670,20 +1670,13 @@ ures_getStringByKeyWithFallback(const UResourceBundle *resB,
|
|||
const UChar* retVal = NULL;
|
||||
ures_initStackObject(&stack);
|
||||
ures_getByKeyWithFallback(resB, inKey, &stack, status);
|
||||
int32_t length;
|
||||
retVal = ures_getString(&stack, &length, status);
|
||||
retVal = ures_getString(&stack, len, status);
|
||||
ures_close(&stack);
|
||||
if (U_FAILURE(*status)) {
|
||||
return NULL;
|
||||
}
|
||||
if (length == 3 && retVal[0] == EMPTY_SET && retVal[1] == EMPTY_SET && retVal[2] == EMPTY_SET ) {
|
||||
if ( retVal != NULL && u_strlen(retVal) == 3 && retVal[0] == EMPTY_SET && retVal[1] == EMPTY_SET && retVal[2] == EMPTY_SET ) {
|
||||
retVal = NULL;
|
||||
length = 0;
|
||||
*len = 0;
|
||||
*status = U_MISSING_RESOURCE_ERROR;
|
||||
}
|
||||
if (len != NULL) {
|
||||
*len = length;
|
||||
}
|
||||
return retVal;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue