TF++, Miscellaneous classes and modules in C++:
|
C<std::string> tfxx::string::split | ( | const std::string & | s, |
const std::string & | delimiter = " " , |
||
const bool & | dropdelimiter = false |
||
) |
template #tf::split#
Use the following interface to the gen_split function by explicitely passing a template type argument like:
#list<string> l;# #string s="a,b,c,d,e";# #l=split<list>(s);#
This is the inverse operation to #tf::join#.
s | string to be split into substrings |
delimiter | string sequence that intersects substrings |
dropdelimiter | if #true# the delimiter itself will be excluded from the output |
#)
Definition at line 159 of file stringfunc.h.
References gen_split().