#include <utils.h>
Inheritance diagram for CB2::PStringTokenizer< Tchar >:

| Public Types | |
| typedef PStringTokenizer< Tchar > | this_type | 
| Template type alias. | |
| typedef PString< Tchar > | item_type | 
| Item type. | |
| typedef List< item_type > | storage_type | 
| Storage type. | |
| typedef storage_type::size_type | size_type | 
| Size type. | |
| typedef storage_type::ref_type | ref_type | 
| Reference type. | |
| typedef Iterator< this_type, ref_type, item_type > | iterator | 
| Iterator. | |
| typedef RevIterator< this_type, ref_type, item_type > | rev_iterator | 
| Reverse iterator. | |
| Public Member Functions | |
| PStringTokenizer (const item_type &str, const item_type &delim) | |
| Constructor. | |
| ~PStringTokenizer () | |
| Destructor. | |
| size_type | Len () const | 
| Number of tokens. | |
| const item_type & | operator[] (const size_type pos) const | 
| Access token. | |
| ref_type | RefBegin () const | 
| Get starting reference. | |
| ref_type | RefEnd () const | 
| Get final reference. | |
| ref_type | RevRefBegin () const | 
| Get starting reverse reference. | |
| ref_type | RevRefEnd () const | 
| Get final reverse reference. | |
| ref_type | RefNext (const ref_type &prev) const | 
| Get succeding reference. | |
| ref_type | RefPrev (const ref_type &prev) const | 
| Get predecessing reference. | |
| const item_type & | Deref (const ref_type &ref) const | 
| Dereference. | |
| const item_type & | RevDeref (const ref_type &ref) const | 
| Reverse dereference. | |
| iterator | Begin () const | 
| Get starting iterator. | |
| iterator | End () const | 
| Get final iterator. | |
| rev_iterator | RevBegin () const | 
| Get starting reverse iterator. | |
| rev_iterator | RevEnd () const | 
| Get final iterator. | |
| Public Attributes | |
| int | tag | 
| Tag for user-specific data. | |
| Private Attributes | |
| storage_type * | tokens | 
| String tokens. | |
This template splits string into tokens (delimited by another string), which are then accessible using iterators.
| 
 | |||||
| Item type. 
 | 
| 
 | |||||
| 
 | 
| 
 | |||||
| Reference type. 
 | 
| 
 | |||||
| Reverse iterator. 
 | 
| 
 | |||||
| Size type. 
 | 
| 
 | |||||
| Storage type. 
 | 
| 
 | |||||
| Template type alias. 
 | 
| 
 | ||||||||||||||||
| Constructor. Initialize tokenizer with a string to split and delimiter. Prepare token strings. 
 
 | 
| 
 | |||||||||
| Destructor. Delete tokens. | 
| 
 | |||||||||
| Get starting iterator. 
 
 | 
| 
 | ||||||||||
| Dereference. Get the token (substring) referenced by 'ref'. For final or invalid references, Substr() method throws ExceptionRange. 
 
 
 | 
| 
 | |||||||||
| Get final iterator. 
 
 | 
| 
 | |||||||||
| Number of tokens. 
 
 | 
| 
 | ||||||||||
| Access token. 
 
 
 | 
| 
 | |||||||||
| Get starting reference. Get the reference to the first token in the string. 
 
 | 
| 
 | |||||||||
| Get final reference. Get the final reference. This is a reference pointing after the end of the string. 
 
 | 
| 
 | ||||||||||
| Get succeding reference. Get the reference to a token succeding the token referenced by 'prev'. 
 
 
 | 
| 
 | ||||||||||
| Get predecessing reference. Get the reference to a token predecessing the token referenced by 'prev'. 
 
 
 | 
| 
 | |||||||||
| Get starting reverse iterator. 
 
 | 
| 
 | ||||||||||
| Reverse dereference. Get the token (substring) referenced by 'ref'. For final or invalid references, Substr() method throws ExceptionRange. 
 
 
 | 
| 
 | |||||||||
| Get final iterator. 
 
 | 
| 
 | |||||||||
| Get starting reverse reference. Get the reference to the last token in the string. 
 
 | 
| 
 | |||||||||
| Get final reverse reference. Get the final reverse reference to the first item. 
 
 | 
| 
 | 
| Tag for user-specific data. 
 | 
| 
 | |||||
| String tokens. 
 | 
 1.3.7
 1.3.7