string_tokeniser_comparator Struct Template Reference
[String Library]

#include <stlsoft/string/string_tokeniser.hpp>

List of all members.


Detailed Description

template<typename D, typename S, typename T>
struct stlsoft::string_tokeniser_comparator< D, S, T >

A generic comparator, used to specialise string_tokeniser, that covers most string and delimiter types.

This the default tokeniser comparator, providing functionality for both single-character and fixed string delimiters.

Parameters:
D The delimiter type
S The string type
T The traits type

Member Types

typedef D delimiter_type
 The delimiter type.
typedef S string_type
 The string type.
typedef T traits_type
 The traits type.
typedef
traits_type::const_iterator_type 
const_iterator
 The non-mutating (const) iterator type.

Static Public Member Functions

Operations
static bool not_equal (delimiter_type const &delim, const_iterator &it)
 Evaluates whether the delimiter and the sequence are not equivalent to the extent of the delimiter.
static size_t length (delimiter_type const &delim)
 Returns the length of the delimiter.

Member Typedef Documentation

typedef D delimiter_type

The delimiter type.

typedef S string_type

The string type.

typedef T traits_type

The traits type.

typedef traits_type::const_iterator_type const_iterator

The non-mutating (const) iterator type.


Member Function Documentation

static bool not_equal ( delimiter_type const &  delim,
const_iterator it 
) [inline, static]

Evaluates whether the delimiter and the sequence are not equivalent to the extent of the delimiter.

static size_t length ( delimiter_type const &  delim  )  [inline, static]

Returns the length of the delimiter.


The documentation for this struct was generated from the following file:

Generated on Thu Jun 10 08:59:00 2010 for STLSoft by  doxygen 1.5.6