Home | History | Annotate | Download | only in common

Lines Matching refs:pRoot

38 /* get a const char* pointer to the key with the keyOffset byte offset from pRoot */
39 #define RES_GET_KEY(pRoot, keyOffset) ((const char *)(pRoot)+(keyOffset))
52 _res_getArrayItem(Resource *pRoot, Resource res, int32_t indexR) {
53 const int32_t *p=(const int32_t *)RES_GET_POINTER(pRoot, res);
64 * Important: the key offsets are 16-bit byte offsets from pRoot,
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);
78 return RES_GET_KEY(pRoot, p[indexS+1]);
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);
88 return RES_GET_KEY(pRoot, p[indexS+1]);
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);
138 result = uprv_strcmp(key, RES_GET_KEY(pRoot, p[mid]));
147 *realKey=RES_GET_KEY(pRoot, p[mid]);
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);
178 result = uprv_strcmp(key, RES_GET_KEY(pRoot, p[mid]));
187 *realKey=RES_GET_KEY(pRoot, p[mid]);
231 pResData->pRoot=(Resource *)udata_getMemory(pResData->data);
232 pResData->rootRes=*pResData->pRoot;
246 const int32_t *indexes=(const int32_t *)pResData->pRoot+1;
274 const int32_t *p= res==0 ? emptyString : (const int32_t *)RES_GET_POINTER(pResData->pRoot, res);
290 const int32_t *p=(const int32_t *)RES_GET_POINTER(pResData->pRoot, res);
306 const int32_t *p=(const int32_t *)RES_GET_POINTER(pResData->pRoot, res);
322 const int32_t *p=(const int32_t *)RES_GET_POINTER(pResData->pRoot, 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);
365 return _res_findTableItem(pResData->pRoot, pResData->rootRes, key, &idx, &realKey);
367 return _res_findTable32Item(pResData->pRoot, pResData->rootRes, key, &idx, &realKey);
373 return _res_getArrayItem(pResData->pRoot, array, indexR);
420 t2 = _res_findTableItem(pResData->pRoot, t1, pathP, &indexR, key);
430 t2 = _res_findTable32Item(pResData->pRoot, t1, pathP, &indexR, key);
442 t2 = _res_getArrayItem(pResData->pRoot, t1, indexR);
464 return _res_findTableItem(pResData->pRoot, table, *key, indexR, key);
466 return _res_findTable32Item(pResData->pRoot, table, *key, indexR, key);
479 *key = _res_getTableKey(pResData->pRoot, table, indexR);
481 return _res_getTableItem(pResData->pRoot, table, indexR);
484 *key = _res_getTable32Key(pResData->pRoot, table, indexR);
486 return _res_getTable32Item(pResData->pRoot, table, indexR);