Changeset 9328 in orxonox.OLD for branches/proxy/src/lib/util/substring.h
- Timestamp:
- Jul 18, 2006, 7:28:06 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/util/substring.h
r9316 r9328 75 75 76 76 // retrieve a SubSet from the String 77 SubString getSubSet(unsigned int subSetBegin) const;78 SubString getSubSet(unsigned int subSetBegin, unsigned int subSetEnd) const;77 SubString subSet(unsigned int subSetBegin) const; 78 SubString subSet(unsigned int subSetBegin, unsigned int subSetEnd) const; 79 79 80 80 // retrieve Information from within … … 84 84 inline unsigned int size() const { return this->strings.size(); }; 85 85 /** @param i the i'th String @returns the i'th string from the subset of Strings */ 86 inline const std::string& operator[](unsigned int i) const { return /*(i < this->strings.size()) ? */this->strings[i] /*: emptyString*/; };86 inline const std::string& operator[](unsigned int i) const { return this->strings[i]; }; 87 87 /** @param i the i'th String @returns the i'th string from the subset of Strings */ 88 88 inline const std::string& getString(unsigned int i) const { return (*this)[i]; }; … … 113 113 private: 114 114 std::vector<std::string> strings; //!< strings produced from a single string splitted in multiple strings 115 116 // static const std::string emptyString;117 115 }; 118 116
Note: See TracChangeset
for help on using the changeset viewer.