Lines Matching refs:itemCount

391     itemCount=0;  in Package()
423 for(idx=0; idx<itemCount; ++idx) { in ~Package()
513 itemCount=udata_readInt32(ds, *(const int32_t *)inBytes); in readPackage()
514 setItemCapacity(itemCount); /* resize so there's space */ in readPackage()
515 if(itemCount==0) { in readPackage()
517 } else if(length<(4+8*itemCount)) { in readPackage()
522 offset=20+(int32_t)ds->readUInt32(inEntries[itemCount-1].dataOffset); in readPackage()
532 if(itemCount<=0) { in readPackage()
541 if(itemCount>itemMax) { in readPackage()
547 int32_t stringsOffset=4+8*itemCount; in readPackage()
569 memset(items, 0, itemCount*sizeof(Item)); in readPackage()
631 for(i=0; i<itemCount; ++i) { in readPackage()
659 items[itemCount-1].length=length-ds->readUInt32(inEntries[itemCount-1].dataOffset); in readPackage()
662 … typeEnum=getTypeEnumForInputData(items[itemCount-1].data, items[itemCount-1].length, &errorCode); in readPackage()
667 items[itemCount-1].type=makeTypeLetter(typeEnum); in readPackage()
797 for(i=0; i<itemCount; ++i) { in writePackage()
807 basenameOffset=4+8*itemCount; in writePackage()
817 outInt32=itemCount; in writePackage()
833 for(i=0; i<itemCount; ++i) { in writePackage()
864 for(pItem=items, i=0; i<itemCount; ++pItem, ++i) { in writePackage()
902 limit=itemCount; in findItem()
978 while(findNextIndex<itemCount) { in findNextItem()
1035 if(idx<itemCount) { in addItem()
1036 memmove(items+idx+1, items+idx, (itemCount-idx)*sizeof(Item)); in addItem()
1038 ++itemCount; in addItem()
1079 for(pItem=listPkg.items, i=0; i<listPkg.itemCount; ++pItem, ++i) { in addItems()
1093 if((idx+1)<itemCount) { in removeItem()
1094 memmove(items+idx, items+idx+1, (itemCount-(idx+1))*sizeof(Item)); in removeItem()
1096 --itemCount; in removeItem()
1119 for(pItem=listPkg.items, i=0; i<listPkg.itemCount; ++pItem, ++i) { in removeItems()
1134 if(idx<0 || itemCount<=idx) { in extractItem()
1202 for(pItem=listPkg.items, i=0; i<listPkg.itemCount; ++pItem, ++i) { in extractItems()
1209 return itemCount; in getItemCount()
1214 if (0 <= idx && idx < itemCount) { in getItem()
1241 for(i=0; i<itemCount; ++i) { in enumDependencies()
1275 uprv_sortArray(items, itemCount, (int32_t)sizeof(Item), compareItems, NULL, FALSE, &errorCode); in sortItems()
1294 if(items && itemCount>0) { in setItemCapacity()
1295 uprv_memcpy(newItems, items, itemCount*sizeof(items[0])); in setItemCapacity()
1304 if((itemCount+1)>itemMax) { in ensureItemCapacity()
1305 setItemCapacity(itemCount+kItemsChunk); in ensureItemCapacity()