Delimiters for strsplit(), regsplit(), strtoken() and strtrim(). More...
Public Member Functions | |
| strdelim () | |
| contructor that specifies that all whitespaces are delimiters. | |
| strdelim (const std::string &delimiters) | |
| contructor that sets the delimiters (see pattern()). | |
| strdelim (const char *delimiters) | |
| contructor that sets the delimiters (see pattern()). | |
| void | reset () |
| resets the strdelim so that it can be used again (useful only for strtoken()). | |
| void | pattern (const std::string &delimiters) |
| changes delimiters. More... | |
| strdelim & | spaces (bool val=true) |
| specifies that all whitespaces are delimiters. | |
| strdelim & | quotes (bool val=true) |
| specifies that simple and double quotes are taken into account (no effect with regsplit()). | |
| strdelim & | trim (bool val=true) |
| specifies that tokens must be trimmed (the default). | |
| void | pos (size_t val) |
| changes the starting position in the string (default is 0). | |
| size_t | pos () const |
| returns the position in the string after calling strtoken(). | |
| char | matched () const |
| returns the delimited that was found after calling strtoken()). | |
Delimiters for strsplit(), regsplit(), strtoken() and strtrim().
|
inline |
changes delimiters.
delimiters specifies the delimiters. All whitespaces match if delimiters is the empty string. Otherwise:
1.8.4