Source-highlight Library
|
Tokenizes a paragraph separating words from spaces. More...
#include <wordtokenizer.h>
Public Types | |
typedef std::list< std::pair < std::string, std::string > > | WordTokenizerResults |
Results of the tokenizer; each element is a pair where the first string represents a possible space and the second string a possible word. More... | |
Static Public Member Functions | |
static void | tokenize (const std::string &s, WordTokenizerResults &results) |
Tokenizes the passed string and stores the results. More... | |
Tokenizes a paragraph separating words from spaces.
typedef std::list<std::pair<std::string, std::string> > srchilite::WordTokenizer::WordTokenizerResults |
Results of the tokenizer; each element is a pair where the first string represents a possible space and the second string a possible word.
The two elements are mutually exclusive
|
static |
Tokenizes the passed string and stores the results.
s | the string to tokenize |
results | where to store the results |