.TH "shevek::split" 3 "Fri May 11 2012" "libshevek" \" -*- nroff -*- .ad l .nh .SH NAME shevek::split \- .PP Split a string into words and retrieve them individually\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBsplit\fP (std::string const &str=std::string())" .br .RI "\fICreate a new split object, and optionally load it with data\&. \fP" .ti -1c .RI "void \fBload\fP (std::string const &str, bool allow_empty=false, std::string const &delimiters=std::string(' \\t\\v\\f\\a\\n\\r\\0', 8))" .br .RI "\fILoad new data into an existing split object\&. \fP" .ti -1c .RI "std::string \fBoperator[]\fP (unsigned idx) const " .br .RI "\fIGet a word from the split object\&. \fP" .ti -1c .RI "\fBsplit\fP \fBsub\fP (unsigned from) const " .br .RI "\fIGet a new split object containing only the last part of this one\&. \fP" .in -1c .SH "Detailed Description" .PP Split a string into words and retrieve them individually\&. .SH "Member Function Documentation" .PP .SS "std::string shevek::split::operator[] (unsignedidx) const\fC [inline]\fP" .PP Get a word from the split object\&. This differs from std::vector's method in that it returns an empty string if idx is out of range\&. .SH "Author" .PP Generated automatically by Doxygen for libshevek from the source code\&.