Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9328 in orxonox.OLD for branches/proxy/src/lib/util/substring.h


Ignore:
Timestamp:
Jul 18, 2006, 7:28:06 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: substring nicer now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/lib/util/substring.h

    r9316 r9328  
    7575
    7676  // 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;
    7979
    8080  // retrieve Information from within
     
    8484  inline unsigned int size() const { return this->strings.size(); };
    8585  /** @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]; };
    8787  /** @param i the i'th String @returns the i'th string from the subset of Strings */
    8888  inline const std::string& getString(unsigned int i) const { return (*this)[i]; };
     
    113113private:
    114114  std::vector<std::string>  strings;                      //!< strings produced from a single string splitted in multiple strings
    115 
    116 //   static const std::string emptyString;
    117115};
    118116
Note: See TracChangeset for help on using the changeset viewer.