Static Public Member Functions | List of all members
Celartem::StringUtil< T, Traits > Struct Template Reference

#include <cel_stringutil.h>

Static Public Member Functions

static size_t strlen (const T *inString)
 
static void strcpy (T *CEL_RESTRICT inDest, const T *CEL_RESTRICT inSrc)
 
static int strcmp (const T *CEL_RESTRICT str1, const T *CEL_RESTRICT str2)
 
static const T * strchr (const T *inString, typename Traits::CharCodeType inChar)
 
static const T * strpbrk (const T *CEL_RESTRICT inString, const T *CEL_RESTRICT inChars)
 

Detailed Description

template<typename T, typename Traits = DefaultCharTraits<T>>
struct Celartem::StringUtil< T, Traits >

This struct provides standard C like string manipulation functions. All you have to do is to define character traits struct corresponding to your character set.

See Also
DefaultCharTraits

Member Function Documentation

template<typename T , typename Traits = DefaultCharTraits<T>>
static const T* Celartem::StringUtil< T, Traits >::strchr ( const T *  inString,
typename Traits::CharCodeType  inChar 
)
inlinestatic

Identical to strchr function except it does not support any locales and it only works with 'C' locale.

Referenced by Celartem::StringUtil< T, Traits >::strpbrk().

template<typename T , typename Traits = DefaultCharTraits<T>>
static int Celartem::StringUtil< T, Traits >::strcmp ( const T *CEL_RESTRICT  str1,
const T *CEL_RESTRICT  str2 
)
inlinestatic

Identical to strcmp function except it does not support any locales and it only works with 'C' locale.

template<typename T , typename Traits = DefaultCharTraits<T>>
static void Celartem::StringUtil< T, Traits >::strcpy ( T *CEL_RESTRICT  inDest,
const T *CEL_RESTRICT  inSrc 
)
inlinestatic

Identical to strcpy function except it does not support any locales and it only works with 'C' locale.

template<typename T , typename Traits = DefaultCharTraits<T>>
static size_t Celartem::StringUtil< T, Traits >::strlen ( const T *  inString)
inlinestatic

Identical to strlen function except it does not support any locales and it only works with 'C' locale.

template<typename T , typename Traits = DefaultCharTraits<T>>
static const T* Celartem::StringUtil< T, Traits >::strpbrk ( const T *CEL_RESTRICT  inString,
const T *CEL_RESTRICT  inChars 
)
inlinestatic

Identical to strpbrk function except it does not support any locales and it only works with 'C' locale.


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

Cuminas DjVu SDK 3.0.33103
This document is made with doxygen 1.8.5 at Sun Dec 15 2013 19:38:06.
Cuminas Logo