Home | History | Annotate | Download | only in toolutil

Lines Matching full:item

370     return (int32_t)strcmp(((Item *)left)->name, ((Item *)right)->name);
486 /* check that the itemCount fits, then the ToC table, then at least the header of the last item */
499 /* offset of the last item plus at least 20 bytes for its header */
508 /* do not modify the package length variable until the last item's length is set */
520 /* swap the item name strings */
524 // don't include padding bytes at the end of the item names
530 fprintf(stderr, "icupkg: total length of item name strings too long\n");
537 fprintf(stderr, "icupkg failed to swap the input .dat package item name strings\n");
542 // reset the Item entries
543 memset(items, 0, itemCount*sizeof(Item));
552 * tree names, and item names,
554 * use an underscore ('_') between package and item names.
574 // skip the package part of the item name, error if it does not match the actual package name
579 fprintf(stderr, "icupkg: input .dat item name \"%s\" does not start with \"%s\"\n",
585 // set the item's data
590 // set the previous item's platform type
593 fprintf(stderr, "icupkg: not an ICU data file: item \"%s\" in \"%s\"\n", items[i-1].name, filename);
600 // set the last item's length
603 // set the last item's platform type
606 fprintf(stderr, "icupkg: not an ICU data file: item \"%s\" in \"%s\"\n", items[i-1].name, filename);
612 // sort the item names for the local charset
631 Item *pItem;
710 // for prepending to item names
720 // swap and sort the item names (sorting needs to be done in the output charset)
723 fprintf(stderr, "icupkg: swapInvChars(item names) failed - %s\n", u_errorName(errorCode));
729 // create the output item names in sorted order, with the package name prepended to each
738 // calculate offsets for item names and items, pad to 16-align items
739 // align only the first item; each item's length is a multiple of 16
754 fprintf(stderr, "icupkg: swapArray32(item count) failed - %s\n", u_errorName(errorCode));
760 fprintf(stderr, "icupkg: unable to write complete item count to file \"%s\"\n", filename);
764 // then write the item entries (and collect the maxItemLength)
772 fprintf(stderr, "icupkg: swapArray32(item entry %ld) failed - %s\n", (long)i, u_errorName(errorCode));
778 fprintf(stderr, "icupkg: unable to write complete item entry %ld to file \"%s\"\n", (long)i, filename);
789 // write the item names
792 fprintf(stderr, "icupkg: unable to write complete item names to file \"%s\"\n", filename);
800 // swap each item from its platform properties to the desired ones
806 fprintf(stderr, "icupkg: udata_swap(item %ld) failed - %s\n", (long)i, u_errorName(errorCode));
812 fprintf(stderr, "icupkg: unable to write complete item %ld to file \"%s\"\n", (long)i, filename);
849 * to the first item with this prefix
890 fprintf(stderr, "icupkg: syntax error (more than one '*') in item pattern \"%s\"\n", pattern);
916 // item name too short for prefix & suffix
939 // found a matching item
964 // new item, make space at the insertion point
972 memmove(items+idx+1, items+idx, (itemCount-idx)*sizeof(Item));
976 // reset this Item entry
977 memset(items+idx, 0, sizeof(Item));
979 // copy the item's name
984 // same-name item found, replace it
989 // keep the item's name since it is the same
992 // set the item's data
1012 const Item *pItem;
1023 // remove the item
1030 memmove(items+idx, items+idx+1, (itemCount-(idx+1))*sizeof(Item));
1052 const Item *pItem;
1065 Item *pItem;
1084 fprintf(stderr, "icupkg: udata_openSwapper(item %ld) failed - %s\n",
1092 // swap the item from its platform properties to the desired ones
1095 fprintf(stderr, "icupkg: udata_swap(item %ld) failed - %s\n", (long)idx, u_errorName(errorCode));
1134 const Item *pItem;
1147 const Item *
1157 // check dependency: make sure the target item is in the package
1161 fprintf(stderr, "Item %s depends on missing item %s\n", itemName, targetName);
1210 uprv_sortArray(items, itemCount, (int32_t)sizeof(Item), compareItems, NULL, FALSE, &errorCode);
1212 fprintf(stderr, "icupkg: sorting item names failed - %s\n", u_errorName(errorCode));