Apache Singa
A General Distributed Deep Learning Library
|
Tokenize a string. More...
#include <string.h>
Public Member Functions | |
Tokenizer (const std::string &str, const std::string &sep) | |
Tokenizer & | operator>> (std::string &out) |
bool | Valid () |
Tokenize a string.
example: Tokenizer t("assa,asf;wes", ",;"); string x; t >> x; // x is assa t >> x; // x is asf t >> x; // x is wes cout << (t >> x); // print 0.