#include <string>
#include <vector>
Go to the source code of this file.
split_mode defines how the routine Split generates substrings SPM_RELAX: multiple adjacent separators will be coalesced into one this way you can never get an empty substring SPM_KEEP_EMPTY: multiple adjacent separators will result in empty substrings to be added to the list SPM_STRICT: empty substrings are illegal
Enumerator |
---|
SPM_RELAX |
|
SPM_KEEP_EMPTY |
|
SPM_STRICT |
|
Definition at line 16 of file service.h.
bool FindAndErase |
( |
string & |
str, |
|
|
const string & |
substr |
|
) |
| |
|
inline |
bool FindAndReplace |
( |
string & |
str, |
|
|
const string & |
substr, |
|
|
const string & |
newstr |
|
) |
| |
|
inline |
void service |
( |
double |
tau, |
|
|
double |
a, |
|
|
double |
beta |
|
) |
| |
void Split |
( |
const std::string & |
str, |
|
|
const std::string & |
sep, |
|
|
std::vector< std::string > & |
lst, |
|
|
split_mode |
mode |
|
) |
| |
Split: split a string into substrings using "sep" as separator
void trimTrailingWhiteSpace |
( |
std::string & |
str | ) |
|
void trimTrailingWhiteSpace |
( |
char * |
str | ) |
|