} else if(idx != -1) {
/* if there is no key, but there is an index, try to get by the index */
/* here we have either a table or an array, so get the element */
- UResType type = (UResType)RES_GET_TYPE(r);
+ int32_t type = RES_GET_TYPE(r);
if(URES_IS_TABLE(type)) {
r = res_getTableItemByIndex(&(mainRes->fResData), r, idx, (const char **)&aKey);
} else { /* array */
/*UResourceDataEntry *realData = NULL;*/
const char *key = inKey;
UResourceBundle *helper = NULL;
- UResType type;
if (status==NULL || U_FAILURE(*status)) {
return fillIn;
return fillIn;
}
- type = (UResType)RES_GET_TYPE(resB->fRes);
+ int32_t type = RES_GET_TYPE(resB->fRes);
if(URES_IS_TABLE(type)) {
int32_t t;
res = res_getTableItemByKey(&(resB->fResData), resB->fRes, &t, &key);
Resource res = RES_BOGUS;
UResourceDataEntry *realData = NULL;
const char *key = inKey;
- UResType type;
if (status==NULL || U_FAILURE(*status)) {
return fillIn;
return fillIn;
}
- type = (UResType)RES_GET_TYPE(resB->fRes);
+ int32_t type = RES_GET_TYPE(resB->fRes);
if(URES_IS_TABLE(type)) {
int32_t t;
res = res_getTableItemByKey(&(resB->fResData), resB->fRes, &t, &key);
Resource res = RES_BOGUS;
UResourceDataEntry *realData = NULL;
const char* key = inKey;
- UResType type;
if (status==NULL || U_FAILURE(*status)) {
return NULL;
return NULL;
}
- type = (UResType)RES_GET_TYPE(resB->fRes);
+ int32_t type = RES_GET_TYPE(resB->fRes);
if(URES_IS_TABLE(type)) {
int32_t t=0;