Lines Matching defs:length
59 int32_t length;
64 int32_t length;
75 _res_findTableItem(const ResourceData *pResData, const uint16_t *keyOffsets, int32_t length,
83 limit=length;
106 _res_findTable32Item(const ResourceData *pResData, const int32_t *keyOffsets, int32_t length,
114 limit=length;
159 UVersionInfo formatVersion, const void *inBytes, int32_t length,
169 if(length>=0 && (length/4)<((formatVersion[0]==1 && formatVersion[1]==0) ? 1 : 1+5)) {
194 if( length>=0 &&
195 (length<((1+indexLength)<<2) ||
196 length<(indexes[URES_INDEX_BUNDLE_TOP]<<2))
243 const UDataInfo *pInfo, const void *inBytes, int32_t length,
255 res_init(pResData, formatVersion, inBytes, length, errorCode);
314 int32_t length;
324 length=u_strlen(p);
326 length=first&0x3ff;
329 length=((first-0xdfef)<<16)|p[1];
332 length=((int32_t)p[1]<<16)|p[2];
336 const int32_t *p32= res==0 ? &gEmptyString.length : pResData->pRoot+res;
337 length=*p32++;
341 length=0;
344 *pLength=length;
363 int32_t length=*p32;
365 return length == 3 && p[2] == 0x2205 && p[3] == 0x2205 && p[4] == 0x2205;
374 if (first == 0x2205) { // implicit length
376 } else if (first == 0xdc03) { // explicit length 3 (should not occur)
379 // Assume that the string has not been stored with more length units than necessary.
396 int32_t length = array.getSize();
397 if(length == 0) {
400 if(length > capacity) {
402 return length;
404 for(int32_t i = 0; i < length; ++i) {
414 return length;
423 int32_t length;
425 const int32_t *p32= offset==0 ? &gEmptyString.length : pResData->pRoot+offset;
426 length=*p32++;
430 length=0;
433 *pLength=length;
442 int32_t length;
445 length=*p32++;
449 length=0;
452 *pLength=length;
462 int32_t length;
465 length=*p++;
468 length=0;
471 *pLength=length;
508 const char16_t *ResourceDataValue::getString(int32_t &length, UErrorCode &errorCode) const {
512 const char16_t *s = res_getString(fTraceInfo, &getData(), res, &length);
519 const char16_t *ResourceDataValue::getAliasString(int32_t &length, UErrorCode &errorCode) const {
523 const char16_t *s = res_getAlias(&getData(), res, &length);
550 const int32_t *ResourceDataValue::getIntVector(int32_t &length, UErrorCode &errorCode) const {
554 const int32_t *iv = res_getIntVector(fTraceInfo, &getData(), res, &length);
561 const uint8_t *ResourceDataValue::getBinary(int32_t &length, UErrorCode &errorCode) const {
565 const uint8_t *b = res_getBinary(fTraceInfo, &getData(), res, &length);
579 int32_t length = 0;
584 length = *items32++;
589 length = *items16++;
595 return ResourceArray(items16, items32, length, fTraceInfo);
607 int32_t length = 0;
612 length = *keys16++;
613 items32 = (const Resource *)(keys16+length+(~length&1));
618 length = *keys16++;
619 items16 = keys16 + length;
624 length = *keys32++;
625 items32 = (const Resource *)keys32 + length;
632 return ResourceTable(keys16, keys32, items16, items32, length, fTraceInfo);
715 int32_t length;
724 length=*p++;
725 *indexR=idx=_res_findTableItem(pResData, p, length, *key, key);
727 const Resource *p32=(const Resource *)(p+length+(~length&1));
735 length=*p++;
736 *indexR=idx=_res_findTableItem(pResData, p, length, *key, key);
738 return makeResourceFrom16(pResData, p[length+idx]);
745 length=*p++;
746 *indexR=idx=_res_findTable32Item(pResData, p, length, *key, key);
748 return (Resource)p[length+idx];
763 int32_t length;
771 length=*p++;
772 if(indexR<length) {
773 const Resource *p32=(const Resource *)(p+length+(~length&1));
784 length=*p++;
785 if(indexR<length) {
789 return makeResourceFrom16(pResData, p[length+indexR]);
796 length=*p++;
797 if(indexR<length) {
801 return (Resource)p[length+indexR];
822 if(0 <= i && i < length) {
850 i = _res_findTableItem(&rdValue.getData(), keys16, length, key, &realKey);
852 i = _res_findTable32Item(&rdValue.getData(), keys32, length, key, &realKey);
906 if(0 <= i && i < length) {
1000 * These swapping functions assume that a resource bundle always has a length
1099 /* swap length */
1106 /* swap length */
1298 /* swap length */
1318 /* swap length and each integer */
1330 const void *inData, int32_t length, void *outData,
1347 headerSize=udata_swapDataHeader(ds, inData, length, outData, pErrorCode);
1373 if(length<0) {
1376 bundleLength=(length-headerSize)/4;
1381 length-headerSize);
1410 udata_printError(ds, "ures_swap(): resource top %d exceeds bundle length %d\n",
1421 if(length>=0) {
1436 resFlagsLength=(length+31)>>5; /* number of bytes needed */
1480 udata_printError(ds, "ures_swap(): unable to allocate memory for sorting tables (max length: %d)\n",