|
wibble
1.1
|
Split a string using a regular expression to match the token separators. More...
#include <regexp.h>
Classes | |
| class | const_iterator |
| Warning: the various iterators reuse the Regexps and therefore only one iteration of a Splitter can be done at a given time. More... | |
Public Member Functions | |
| Splitter (const std::string &re, int flags) | |
| Create a splitter that uses the given regular expression to find tokens. More... | |
| const_iterator | begin (const std::string &str) |
| Split the string and iterate the resulting tokens. More... | |
| const_iterator | end () |
Split a string using a regular expression to match the token separators.
This does a similar work to the split functions of perl, python and ruby.
Example code:
|
inline |
Create a splitter that uses the given regular expression to find tokens.
|
inline |
Split the string and iterate the resulting tokens.
Referenced by wibble::net::http::Params::parse_multipart(), and wibble::net::http::Request::read_method().
|
inline |
1.8.13