Changeset 7300 in orxonox.OLD for trunk/src/lib/util/substring.h
- Timestamp:
- Apr 16, 2006, 7:30:56 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/util/substring.h
r7221 r7300 31 31 unsigned int split(const std::string& string, const std::string& splitters, char escapeChar ='\\', char safemode_char = '"', char comment_char = '\0'); 32 32 33 33 inline unsigned int getCount() { return this->strings.size(); }; 34 const std::string& getString(unsigned int i) { return (i < this->strings.size()) ? this->strings[i] : emptyString; }; // safety-precaution 34 35 const std::string& operator[](unsigned int i) { return this->getString(i); }; 35 36 inline unsigned int getCount() { return this->strings.size(); };37 const std::string& getString(unsigned int i) { return (i < this->strings.size()) ? this->strings[i] : emptyString; };38 36 unsigned int getOffset(unsigned int i); 39 37
Note: See TracChangeset
for help on using the changeset viewer.