Changeset 8300 in orxonox.OLD for branches/script_engine/src/lib/util/substring.h
- Timestamp:
- Jun 9, 2006, 4:20:36 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/script_engine/src/lib/util/substring.h
r7477 r8300 70 70 inline unsigned int size() const { return this->strings.size(); }; 71 71 /** @param i the i'th String @returns the i'th string from the subset of Strings */ 72 const std::string& operator[](unsigned int i) const { return (i < this->strings.size()) ? this->strings[i] : emptyString;return this->getString(i); };72 inline const std::string& operator[](unsigned int i) const { return (i < this->strings.size()) ? this->strings[i] : emptyString; }; 73 73 /** @param i the i'th String @returns the i'th string from the subset of Strings */ 74 const std::string& getString(unsigned int i) const { return (*this)[i]; };74 inline const std::string& getString(unsigned int i) const { return (*this)[i]; }; 75 75 76 76 // the almighty algorithm.
Note: See TracChangeset
for help on using the changeset viewer.