Boost logo

Boost :

From: jbandela_at_[hidden]
Date: 2001-08-29 12:30:53

Here is a version of token_functions that has a preliminary fix for
empty tokens for char_delimiters_separator. I have not yet put it
into the boost cvs because I would like to get more feedback first.

To get empty tokens, use the the following constructor

explicit char_delimiters_separator(const Char * returnable, bool

Here is a quick example

        string s = ",how,, are,,you, doing";
        char_delimiters_separator<char> sep(",",false);
        tokenizer<> t(s,sep);

Let me know what you think, both about the implementation, and the

Note, when returning empty tokens, all separators are returnable.


John R. Bandela

Boost list run by bdawes at, gregod at, cpdaniel at, john at