Home | History | Annotate | Download | only in toolutil

Lines Matching refs:Item

377     return (int32_t)strcmp(((Item *)left)->name, ((Item *)right)->name);
509 /* check that the itemCount fits, then the ToC table, then at least the header of the last item */
523 /* offset of the last item plus at least 20 bytes for its header */
532 /* do not modify the package length variable until the last item's length is set */
548 /* swap the item name strings */
552 // don't include padding bytes at the end of the item names
558 fprintf(stderr, "icupkg: total length of item name strings too long\n");
565 fprintf(stderr, "icupkg failed to swap the input .dat package item name strings\n");
570 // reset the Item entries
571 memset(items, 0, itemCount*sizeof(Item));
576 * tree names, and item names,
578 * use an underscore ('_') between package and item names.
634 // skip the package part of the item name, error if it does not match the actual package name
639 fprintf(stderr, "icupkg: input .dat item name \"%s\" does not start with \"%s\"\n",
645 // set the item's data
650 // set the previous item's platform type
653 fprintf(stderr, "icupkg: not an ICU data file: item \"%s\" in \"%s\"\n", items[i-1].name, filename);
660 // set the last item's length
663 // set the last item's platform type
666 fprintf(stderr, "icupkg: not an ICU data file: item \"%s\" in \"%s\"\n", items[i-1].name, filename);
672 // sort the item names for the local charset
691 Item *pItem;
770 // for prepending to item names
789 // swap and sort the item names (sorting needs to be done in the output charset)
792 fprintf(stderr, "icupkg: swapInvChars(item names) failed - %s\n", u_errorName(errorCode));
798 // create the output item names in sorted order, with the package name prepended to each
807 // calculate offsets for item names and items, pad to 16-align items
808 // align only the first item; each item's length is a multiple of 16
823 fprintf(stderr, "icupkg: swapArray32(item count) failed - %s\n", u_errorName(errorCode));
829 fprintf(stderr, "icupkg: unable to write complete item count to file \"%s\"\n", filename);
833 // then write the item entries (and collect the maxItemLength)
841 fprintf(stderr, "icupkg: swapArray32(item entry %ld) failed - %s\n", (long)i, u_errorName(errorCode));
847 fprintf(stderr, "icupkg: unable to write complete item entry %ld to file \"%s\"\n", (long)i, filename);
858 // write the item names
861 fprintf(stderr, "icupkg: unable to write complete item names to file \"%s\"\n", filename);
869 // swap each item from its platform properties to the desired ones
875 fprintf(stderr, "icupkg: udata_swap(item %ld) failed - %s\n", (long)i, u_errorName(errorCode));
881 fprintf(stderr, "icupkg: unable to write complete item %ld to file \"%s\"\n", (long)i, filename);
918 * to the first item with this prefix
959 fprintf(stderr, "icupkg: syntax error (more than one '*') in item pattern \"%s\"\n", pattern);
985 // item name too short for prefix & suffix
1008 // found a matching item
1033 // new item, make space at the insertion point
1038 memmove(items+idx+1, items+idx, (itemCount-idx)*sizeof(Item));
1042 // reset this Item entry
1043 memset(items+idx, 0, sizeof(Item));
1045 // copy the item's name
1050 // same-name item found, replace it
1055 // keep the item's name since it is the same
1058 // set the item's data
1078 const Item *pItem;
1089 // remove the item
1096 memmove(items+idx, items+idx+1, (itemCount-(idx+1))*sizeof(Item));
1118 const Item *pItem;
1131 Item *pItem;
1150 fprintf(stderr, "icupkg: udata_openSwapper(item %ld) failed - %s\n",
1158 // swap the item from its platform properties to the desired ones
1161 fprintf(stderr, "icupkg: udata_swap(item %ld) failed - %s\n", (long)idx, u_errorName(errorCode));
1201 const Item *pItem;
1214 const Item *
1224 // check dependency: make sure the target item is in the package
1228 fprintf(stderr, "Item %s depends on missing item %s\n", itemName, targetName);
1277 uprv_sortArray(items, itemCount, (int32_t)sizeof(Item), compareItems, NULL, FALSE, &errorCode);
1279 fprintf(stderr, "icupkg: sorting item names failed - %s\n", u_errorName(errorCode));
1289 Item *newItems = (Item*)uprv_malloc(max * sizeof(items[0]));
1290 Item *oldItems = items;