Ignore:
Timestamp:
07/20/20 14:15:14 (4 years ago)
Author:
Maciej Komosinski
Message:

Added whitespace-trimming functions for std::string

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/common/util-string.h

    r913 r1016  
    2121string stripFileDir(const string& filename); // strip path component from filename
    2222
     23void ltrim_inplace(string &s);
     24void rtrim_inplace(string &s);
     25void trim_inplace(string &s);
     26string ltrim(string s);
     27string rtrim(string s);
     28string trim(string s);
     29
    2330#endif
Note: See TracChangeset for help on using the changeset viewer.