Lines Matching full:res
52 _res_getArrayItem(Resource *pRoot, Resource res, int32_t indexR) {
53 const int32_t *p=(const int32_t *)RES_GET_POINTER(pRoot, res);
75 _res_getTableKey(const Resource *pRoot, const Resource res, int32_t indexS) {
76 const uint16_t *p=(const uint16_t *)RES_GET_POINTER(pRoot, res);
85 _res_getTable32Key(const Resource *pRoot, const Resource res, int32_t indexS) {
86 const int32_t *p=(const int32_t *)RES_GET_POINTER(pRoot, res);
96 _res_getTableItem(const Resource *pRoot, const Resource res, int32_t indexR) {
97 const uint16_t *p=(const uint16_t *)RES_GET_POINTER(pRoot, res);
107 _res_getTable32Item(const Resource *pRoot, const Resource res, int32_t indexR) {
108 const int32_t *p=(const int32_t *)RES_GET_POINTER(pRoot, res);
119 _res_findTableItem(const Resource *pRoot, const Resource res, const char *key,
121 const uint16_t *p=(const uint16_t *)RES_GET_POINTER(pRoot, res);
159 _res_findTable32Item(const Resource *pRoot, const Resource res, const char *key,
161 const int32_t *p=(const int32_t *)RES_GET_POINTER(pRoot, res);
225 pResData->data=udata_openChoice(path, "res", name, isAcceptable, formatVersion, errorCode);
264 res_getString(const ResourceData *pResData, const Resource res, int32_t *pLength) {
266 * The data structure is documented as supporting res==0 for empty strings.
273 if(res!=RES_BOGUS && RES_GET_TYPE(res)==URES_STRING) {
274 const int32_t *p= res==0 ? emptyString : (const int32_t *)RES_GET_POINTER(pResData->pRoot, res);
288 res_getAlias(const ResourceData *pResData, const Resource res, int32_t *pLength) {
289 if(res!=RES_BOGUS && RES_GET_TYPE(res)==URES_ALIAS) {
290 const int32_t *p=(const int32_t *)RES_GET_POINTER(pResData->pRoot, res);
304 res_getBinary(const ResourceData *pResData, const Resource res, int32_t *pLength) {
305 if(res!=RES_BOGUS) {
306 const int32_t *p=(const int32_t *)RES_GET_POINTER(pResData->pRoot, res);
320 res_getIntVector(const ResourceData *pResData, const Resource res, int32_t *pLength) {
321 if(res!=RES_BOGUS && RES_GET_TYPE(res)==URES_INT_VECTOR) {
322 const int32_t *p=(const int32_t *)RES_GET_POINTER(pResData->pRoot, res);
335 res_countArrayItems(const ResourceData *pResData, const Resource res) {
336 if(res!=RES_BOGUS) {
337 switch(RES_GET_TYPE(res)) {
346 const int32_t *p=(const int32_t *)RES_GET_POINTER(pResData->pRoot, res);
350 const uint16_t *p=(const uint16_t *)RES_GET_POINTER(pResData->pRoot, res);
569 Resource res,
575 if(res==0 || RES_GET_TYPE(res)==URES_INT) {
581 offset=(int32_t)RES_GET_OFFSET(res);
583 udata_printError(ds, "ures_preflightResource(res=%08x) resource offset exceeds bundle length %d\n",
584 res, length);
592 switch(RES_GET_TYPE(res)) {
609 if(RES_GET_TYPE(res)==URES_TABLE) {
640 udata_printError(ds, "ures_preflightResource(table res=%08x)[%d].recurse(%08x) failed\n",
641 res, i, item);
665 udata_printError(ds, "ures_preflightResource(array res=%08x)[%d].recurse(%08x) failed\n",
666 res, i, item);
679 udata_printError(ds, "ures_preflightResource(res=%08x) unknown resource type\n", res);
687 udata_printError(ds, "ures_preflightResource(res=%08x) resource limit exceeds bundle length %d\n",
688 res, length);
702 Resource res, /* caller swaps res itself */
710 if(res==0 || RES_GET_TYPE(res)==URES_INT) {
716 offset=(int32_t)RES_GET_OFFSET(res);
720 switch(RES_GET_TYPE(res)) {
755 if(RES_GET_TYPE(res)==URES_TABLE) {
814 udata_printError(ds, "ures_swapResource(table res=%08x)[%d].recurse(%08x) failed\n",
815 res, i, item);
855 udata_printError(ds, "ures_swapResource(table res=%08x).uprv_sortArray(%d items) failed\n",
856 res, count);
934 udata_printError(ds, "ures_swapResource(array res=%08x)[%d].recurse(%08x) failed\n",
935 res, i, item);
1024 udata_printError(ds, "ures_preflightResource(root res=%08x) failed\n",
1082 udata_printError(ds, "ures_swapResource(root res=%08x) failed\n",