Home | History | Annotate | Download | only in icuswap

Lines Matching refs:itemCount

345     uint32_t itemCount, offset, i;
413 itemCount=ds->readUInt32(*(const uint32_t *)inBytes);
414 if(itemCount==0) {
420 offset=ds->readUInt32(inEntries[itemCount-1].dataOffset);
429 /* check that the itemCount fits, then the ToC table, then at least the header of the last item */
432 /* itemCount does not fit */
434 itemCount=0; /* make compilers happy */
436 itemCount=ds->readUInt32(*(const uint32_t *)inBytes);
437 if(itemCount==0) {
439 } else if((uint32_t)length<(4+8*itemCount)) {
444 offset=20+ds->readUInt32(inEntries[itemCount-1].dataOffset);
459 if(itemCount==0) {
465 offset=4+8*itemCount;
490 for(i=0; i<itemCount; ++i) {
523 table=(ToCEntry *)uprv_malloc(itemCount*sizeof(ToCEntry)+length+DEFAULT_PADDING_LENGTH);
525 outBytes=(uint8_t *)(table+itemCount);
532 table=(ToCEntry *)uprv_malloc(itemCount*sizeof(ToCEntry));
537 itemCount*sizeof(ToCEntry)+length+DEFAULT_PADDING_LENGTH :
538 itemCount*sizeof(ToCEntry));
545 for(i=0; i<itemCount; ++i) {
552 table[itemCount-1].length=(uint32_t)length-table[itemCount-1].inOffset;
556 for(i=0; i<itemCount; ++i) {
576 table[itemCount-1].length+=(uint32_t)delta;
582 uprv_sortArray(table, (int32_t)itemCount, (int32_t)sizeof(ToCEntry),
591 for(i=0; i<itemCount; ++i) {
598 for(i=0; i<itemCount; ++i) {
604 for(i=0; i<itemCount; ++i) {