Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Apr 17, 2006, 1:52:22 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: evil is removed

Location:
trunk/src/lib/util
Files:
2 edited

Legend:

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

    r7321 r7323  
    3131#include <cassert>
    3232
     33
     34/**
     35 * @brief default constructor
     36 */
     37SubString::SubString()
     38{
     39}
     40
     41
    3342/**
    3443 * @brief create a SubString from
     
    6271 * @param comment_char the Comment character.
    6372 */
    64 SubString::SubString(const std::string& string, const std::string& splitters, char escapeChar,char safemode_char, char comment_char)
     73SubString::SubString(const std::string& string, const std::string& splitters, char escapeChar, char safemode_char, char comment_char)
    6574{
    6675  SubString::splitLine(this->strings, string, splitters, escapeChar, safemode_char, comment_char);
     
    133142SubString SubString::operator+(const SubString& subString) const
    134143{
    135   return SubString(subString) += subString;
     144  return SubString(*this) += subString;
    136145}
    137146
     
    146155  for (unsigned int i = 0; i < subString.size(); i++)
    147156    this->strings.push_back(subString[i]);
     157  return *this;
    148158}
    149159
     
    190200{
    191201  this->strings.clear();
    192   SubString::splitLine(this->strings, string, splitters, escapeChar, safemode_char);
    193   return strings.size();
     202  SubString::splitLine(this->strings, string, splitters, escapeChar, safemode_char, comment_char);
     203  return this->strings.size();
    194204}
    195205
  • trunk/src/lib/util/substring.h

    r7320 r7323  
    2626{
    2727public:
    28   SubString(const std::string& string = "", char splitter = ',');
     28  SubString();
     29  SubString(const std::string& string, char splitter = ',');
    2930  SubString(const std::string& string, bool whiteSpaces);
    3031  SubString(const std::string& string, const std::string& splitters, char escapeChar ='\\', char safemode_char = '"', char comment_char = '\0');
Note: See TracChangeset for help on using the changeset viewer.