Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7340 in orxonox.OLD for trunk/src/lib/util


Ignore:
Timestamp:
Apr 19, 2006, 2:39:05 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: fixed a ShellCommand-bug

File:
1 edited

Legend:

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

    r7325 r7340  
    5555
    5656  // 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 */
    5760  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]; };
    6065
    6166  // the almighty algorithm.
Note: See TracChangeset for help on using the changeset viewer.