Home | History | Annotate | Download | only in toolutil

Lines Matching refs:Package

10 *   file name:  package.cpp
18 * Read, modify, and write ICU .dat data package files.
35 #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",
369 // .dat package file representation ---------------------------------------- ***
384 Package::Package()
404 // create a header for an empty package
420 Package::~Package() {
435 Package::setPrefix(const char *p) {
444 Package::readPackage(const char *filename) {
497 fprintf(stderr, "icupkg: data format %02x.%02x.%02x.%02x (format version %02x) is not recognized as an ICU .dat package\n",
528 fprintf(stderr, "icupkg: too few bytes (%ld after header) for a .dat package\n",
532 /* do not modify the package length variable until the last item's length is set */
536 fprintf(stderr, "icupkg: --auto_toc_prefix[_with_type] but the input package is empty\n");
565 fprintf(stderr, "icupkg failed to swap the input .dat package item name strings\n");
575 * New-style ICU .dat packages use tree separators ('/') between package names,
578 * use an underscore ('_') between package and item names.
584 // Use the first entry's prefix. Must be a new-style package.
612 // Use the package basename as prefix.
621 // old-style .dat package
624 // new-style .dat package
634 // skip the package part of the item name, error if it does not match the actual package name
635 // or if nothing follows the package name
681 Package::getInType() {
686 Package::writePackage(const char *filename, char outType, const char *comment) {
769 // prepare and swap the package name with a tree separator
785 fprintf(stderr, "icupkg: swapInvChars(output package name) failed - %s\n", u_errorName(errorCode));
798 // create the output item names in sorted order, with the package name prepended to each
898 Package::findItem(const char *name, int32_t length) const {
936 Package::findItems(const char *pattern) {
972 Package::findNextItem() {
1018 Package::setMatchMode(uint32_t mode) {
1023 Package::addItem(const char *name) {
1028 Package::addItem(const char *name, uint8_t *data, int32_t length, UBool isDataOwned, char type) {
1066 Package::addFile(const char *filesPath, const char *name) {
1077 Package::addItems(const Package &listPkg) {
1087 Package::removeItem(int32_t idx) {
1107 Package::removeItems(const char *pattern) {
1117 Package::removeItems(const Package &listPkg) {
1127 Package::extractItem(const char *filesPath, const char *outName, int32_t idx, char outType) {
1185 Package::extractItem(const char *filesPath, int32_t idx, char outType) {
1190 Package::extractItems(const char *filesPath, const char *pattern, char outType) {
1200 Package::extractItems(const char *filesPath, const Package &listPkg, char outType) {
1210 Package::getItemCount() const {
1215 Package::getItem(int32_t idx) const {
1223 Package::checkDependency(void *context, const char *itemName, const char *targetName) {
1224 // check dependency: make sure the target item is in the package
1225 Package *me=(Package *)context;
1233 Package::checkDependencies() {
1240 Package::enumDependencies(void *context, CheckDependency check) {
1249 Package::allocString(UBool in, int32_t length) {
1275 Package::sortItems() {
1284 void Package::setItemCapacity(int32_t max)
1304 void Package::ensureItemCapacity()