mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-21 12:40:02 +00:00
ICU-8638 milestone:3.8.1 fix for C++isms
X-SVN-Rev: 30354
This commit is contained in:
parent
a108b1825f
commit
3284177c54
1 changed files with 6 additions and 3 deletions
|
@ -1685,6 +1685,7 @@ ures_getByKeyWithFallback(const UResourceBundle *resB,
|
|||
/*UResourceDataEntry *realData = NULL;*/
|
||||
const char *key = inKey;
|
||||
UResourceBundle *helper = NULL;
|
||||
int32_t type;
|
||||
|
||||
if (status==NULL || U_FAILURE(*status)) {
|
||||
return fillIn;
|
||||
|
@ -1694,7 +1695,7 @@ ures_getByKeyWithFallback(const UResourceBundle *resB,
|
|||
return fillIn;
|
||||
}
|
||||
|
||||
int32_t type = RES_GET_TYPE(resB->fRes);
|
||||
type = RES_GET_TYPE(resB->fRes);
|
||||
if(URES_IS_TABLE(type)) {
|
||||
int32_t t;
|
||||
res = res_getTableItemByKey(&(resB->fResData), resB->fRes, &t, &key);
|
||||
|
@ -1762,6 +1763,7 @@ U_CAPI UResourceBundle* U_EXPORT2 ures_getByKey(const UResourceBundle *resB, con
|
|||
Resource res = RES_BOGUS;
|
||||
UResourceDataEntry *realData = NULL;
|
||||
const char *key = inKey;
|
||||
int32_t type;
|
||||
|
||||
if (status==NULL || U_FAILURE(*status)) {
|
||||
return fillIn;
|
||||
|
@ -1771,7 +1773,7 @@ U_CAPI UResourceBundle* U_EXPORT2 ures_getByKey(const UResourceBundle *resB, con
|
|||
return fillIn;
|
||||
}
|
||||
|
||||
int32_t type = RES_GET_TYPE(resB->fRes);
|
||||
type = RES_GET_TYPE(resB->fRes);
|
||||
if(URES_IS_TABLE(type)) {
|
||||
int32_t t;
|
||||
res = res_getTableItemByKey(&(resB->fResData), resB->fRes, &t, &key);
|
||||
|
@ -1814,6 +1816,7 @@ U_CAPI UResourceBundle* U_EXPORT2 ures_getByKey(const UResourceBundle *resB, con
|
|||
U_CAPI const UChar* U_EXPORT2 ures_getStringByKey(const UResourceBundle *resB, const char* inKey, int32_t* len, UErrorCode *status) {
|
||||
Resource res = RES_BOGUS;
|
||||
UResourceDataEntry *realData = NULL;
|
||||
int32_t type;
|
||||
const char* key = inKey;
|
||||
|
||||
if (status==NULL || U_FAILURE(*status)) {
|
||||
|
@ -1824,7 +1827,7 @@ U_CAPI const UChar* U_EXPORT2 ures_getStringByKey(const UResourceBundle *resB, c
|
|||
return NULL;
|
||||
}
|
||||
|
||||
int32_t type = RES_GET_TYPE(resB->fRes);
|
||||
type = RES_GET_TYPE(resB->fRes);
|
||||
if(URES_IS_TABLE(type)) {
|
||||
int32_t t=0;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue