Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7300 in orxonox.OLD for trunk/src/lib/util/substring.h


Ignore:
Timestamp:
Apr 16, 2006, 7:30:56 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: the most evil for (int i=0; i <'=' …) bug ever…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/util/substring.h

    r7221 r7300  
    3131  unsigned int split(const std::string& string, const std::string& splitters, char escapeChar ='\\', char safemode_char = '"', char comment_char = '\0');
    3232
    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
    3435  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; };
    3836  unsigned int getOffset(unsigned int i);
    3937
Note: See TracChangeset for help on using the changeset viewer.