Changeset 7340 in orxonox.OLD for trunk/src/lib/util
- Timestamp:
- Apr 19, 2006, 2:39:05 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/util/substring.h
r7325 r7340 55 55 56 56 // retrieve Information from within 57 /** @returns true if the SubString is empty */ 58 inline bool empty() const { return this->strings.empty(); }; 59 /** @returns the count of Strings stored in this substring */ 57 60 inline unsigned int size() const { return this->strings.size(); }; 58 const std::string& getString(unsigned int i) const { return (i < this->strings.size()) ? this->strings[i] : emptyString; }; 59 const std::string& operator[](unsigned int i) const { return this->getString(i); }; 61 /** @param i the i'th String @returns the i'th string from the subset of Strings */ 62 const std::string& operator[](unsigned int i) const { return (i < this->strings.size()) ? this->strings[i] : emptyString;return this->getString(i); }; 63 /** @param i the i'th String @returns the i'th string from the subset of Strings */ 64 const std::string& getString(unsigned int i) const { return (*this)[i]; }; 60 65 61 66 // the almighty algorithm.
Note: See TracChangeset
for help on using the changeset viewer.