Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 19, 2008, 7:53:01 PM (16 years ago)
Author:
rgrieder
Message:
  • fixed a bug String.cc that thought making "1" (or anything with length ) to "" was called 'removing slashes" ;)
  • inserted a TODO there: what happens when string is "\" ?
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/util/String.cc

    r1064 r1111  
    274274    if (str.size() == 0)
    275275        return str;
     276    else if (str.size() == 1)
     277    {
     278      //TODO: decide whether we need the commented code
     279      /*if (str[0] != '\\')
     280        return "";
     281      else*/
     282      return str;
     283    }
    276284
    277285    std::string output = "";
Note: See TracChangeset for help on using the changeset viewer.