ICU-5447 Add const to some methods

X-SVN-Rev: 21519
This commit is contained in:
George Rhoten 2007-05-12 07:47:39 +00:00
parent f66b1f02e0
commit 26dba41dae
2 changed files with 6 additions and 6 deletions

View File

@ -826,7 +826,7 @@ Package::writePackage(const char *filename, char outType, const char *comment) {
}
int32_t
Package::findItem(const char *name, int32_t length) {
Package::findItem(const char *name, int32_t length) const {
int32_t i, start, limit;
int result;
@ -1140,12 +1140,12 @@ Package::extractItems(const char *filesPath, const Package &listPkg, char outTyp
}
int32_t
Package::getItemCount() {
Package::getItemCount() const {
return itemCount;
}
const Item *
Package::getItem(int32_t idx) {
Package::getItem(int32_t idx) const {
if (0 <= idx && idx < itemCount) {
return &items[idx];
}

View File

@ -73,7 +73,7 @@ public:
char getInType();
// find the item in items[], return the non-negative index if found, else the binary-not of the insertion point
int32_t findItem(const char *name, int32_t length=-1);
int32_t findItem(const char *name, int32_t length=-1) const;
/*
* Set internal state for following calls to findNextItem() which will return
@ -109,8 +109,8 @@ public:
/* This variant extracts an item to a specific filename. */
void extractItem(const char *filesPath, const char *outName, int32_t index, char outType);
int32_t getItemCount();
const Item *getItem(int32_t idx);
int32_t getItemCount() const;
const Item *getItem(int32_t idx) const;
/*
* Check dependencies and return TRUE if all dependencies are fulfilled.