Home | History | Annotate | Download | only in toolutil

Lines Matching defs:Package

8 *   file name:  package.cpp
16 * Read, modify, and write ICU .dat data package files.
33 #include "package.h"
186 fprintf(stderr, "icupkg: \"%s\" is not recognized as a package filename (must end with .dat)\n",
192 fprintf(stderr, "icupkg: the package name \"%s\" is too long (>=%ld)\n",
372 // .dat package file representation ---------------------------------------- ***
387 Package::Package()
407 // create a header for an empty package
423 Package::~Package() {
438 Package::setPrefix(const char *p) {
447 Package::readPackage(const char *filename) {
500 fprintf(stderr, "icupkg: data format %02x.%02x.%02x.%02x (format version %02x) is not recognized as an ICU .dat package\n",
531 fprintf(stderr, "icupkg: too few bytes (%ld after header) for a .dat package\n",
535 /* do not modify the package length variable until the last item's length is set */
539 fprintf(stderr, "icupkg: --auto_toc_prefix[_with_type] but the input package is empty\n");
568 package item name strings\n");
578 * New-style ICU .dat packages use tree separators ('/') between package names,
581 * use an underscore ('_') between package and item names.
587 // Use the first entry's prefix. Must be a new-style package.
615 // Use the package basename as prefix.
624 // old-style .dat package
627 // new-style .dat package
637 // skip the package part of the item name, error if it does not match the actual package name
638 // or if nothing follows the package name
684 Package::getInType() {
689 Package::writePackage(const char *filename, char outType, const char *comment) {
772 // prepare and swap the package name with a tree separator
788 fprintf(stderr, "icupkg: swapInvChars(output package name) failed - %s\n", u_errorName(errorCode));
801 // create the output item names in sorted order, with the package name prepended to each
901 Package::findItem(const char *name, int32_t length) const {
939 Package::findItems(const char *pattern) {
975 Package::findNextItem() {
1021 Package::setMatchMode(uint32_t mode) {
1026 Package::addItem(const char *name) {
1031 Package::addItem(const char *name, uint8_t *data, int32_t length, UBool isDataOwned, char type) {
1069 Package::addFile(const char *filesPath, const char *name) {
1080 Package::addItems(const Package &listPkg) {
1090 Package::removeItem(int32_t idx) {
1110 Package::removeItems(const char *pattern) {
1120 Package::removeItems(const Package &listPkg) {
1130 Package::extractItem(const char *filesPath, const char *outName, int32_t idx, char outType) {
1188 Package::extractItem(const char *filesPath, int32_t idx, char outType) {
1193 Package::extractItems(const char *filesPath, const char *pattern, char outType) {
1203 Package::extractItems(const char *filesPath, const Package &listPkg, char outType) {
1213 Package::getItemCount() const {
1218 Package::getItem(int32_t idx) const {
1226 Package::checkDependency(void *context, const char *itemName, const char *targetName) {
1227 // check dependency: make sure the target item is in the package
1228 Package *me=(Package *)context;
1236 Package::checkDependencies() {
1243 Package::enumDependencies(void *context, CheckDependency check) {
1252 Package::allocString(UBool in, int32_t length) {
1278 Package::sortItems() {
1287 void Package::setItemCapacity(int32_t max)
1307 void Package::ensureItemCapacity()