CStrTokenize< TStr, TV, TP, TCount, TReserve > Class Template Reference
[String Manipulations]

Search Toolkit Book for CStrTokenize

#include <ncbistr_util.hpp>

Inheritance diagram for CStrTokenize< TStr, TV, TP, TCount, TReserve >:

Inheritance graph
[legend]
Collaboration diagram for CStrTokenize< TStr, TV, TP, TCount, TReserve >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class TStr, class TV, class TP = CStrDummyTokenPos, class TCount = CStrDummyTokenCount<TStr>, class TReserve = CStrDummyTargetReserve<TStr, TV, TP, TCount>>
class CStrTokenize< TStr, TV, TP, TCount, TReserve >

Main tokenization algorithm.

TStr - string type (must follow std::string interface) TV - container type for tokens (std::vector) TP - target container type for token positions (vector<size_t>) TCount - token count trait for the target container space reservation TReserve- target space reservation trait

Definition at line 118 of file ncbistr_util.hpp.

Public Types

typedef TStr TString
typedef TV TContainer
typedef TP TPosContainer
typedef TCount TCountTrait
typedef TReserve TReserveTrait

Static Public Member Functions

static void Do (const TString &str, const TString &delim, TContainer &target, EMergeDelims merge, TPosContainer &token_pos, const TString &empty_str=TString())
 Tokenize a string using the specified set of char delimiters.


Member Typedef Documentation

template<class TStr, class TV, class TP = CStrDummyTokenPos, class TCount = CStrDummyTokenCount<TStr>, class TReserve = CStrDummyTargetReserve<TStr, TV, TP, TCount>>
typedef TStr CStrTokenize< TStr, TV, TP, TCount, TReserve >::TString
 

Definition at line 121 of file ncbistr_util.hpp.


The documentation for this class was generated from the following file:
Generated on Mon Dec 7 14:48:15 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Mon Dec 07 16:24:11 2009 by modify_doxy.py rev. 173732