Public Types | Static Public Member Functions

Celartem::DefaultCharTraits< T > Struct Template Reference

#include <cel_stringutil.h>

List of all members.

Public Types

typedef T CharCodeType
 The type returned by getCharcode function.

Static Public Member Functions

static const T * next (const T *p)
static const CharCodeType getCharcode (const T *p)

Detailed Description

template<typename T>
struct Celartem::DefaultCharTraits< T >

This struct provides the default traits for StringUtil.


Member Typedef Documentation

template<typename T >
typedef T Celartem::DefaultCharTraits< T >::CharCodeType

The type returned by getCharcode function.


Member Function Documentation

template<typename T >
static const CharCodeType Celartem::DefaultCharTraits< T >::getCharcode ( const T *  p  )  [inline, static]

This function obtains the character code of the current pointer position.
For the character sets that stores a character into an entry uniformly, this function only returns *p .

Parameters:
p The current pointer.
Returns:
The charcode of the character on the pointer position.
template<typename T >
static const T* Celartem::DefaultCharTraits< T >::next ( const T *  p  )  [inline, static]

This function moves the pointer to the next character.
For the character sets that stores a character into an entry uniformly, this function only increments the pointer.

Parameters:
p The pointer to move.
Returns:
The next pointer position.

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

This document is made with doxygen 1.7.1 at Thu Feb 17 2011 15:40:19.
Caminova Logo