Elaboradar
0.1
|
Split a string where a given substring is found. Continua...
#include <string.h>
Membri pubblici | |
const_iterator | begin () |
Return the begin iterator to split a string on instances of sep. Continua... | |
const_iterator | end () |
Return the end iterator to string split. Continua... | |
Attributi pubblici | |
std::string | str |
String to split. Continua... | |
std::string | sep |
Separator. Continua... | |
bool | skip_empty |
If true, skip empty tokens, effectively grouping consecutive separators as if they were a single one. Continua... | |
Split a string where a given substring is found.
This does a similar work to the split functions of perl, python and ruby.
Example code: