Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

std::char_traits Struct Template Reference

21.1.2 Basis for explicit _Traits specialization NB: For any given actual character type this definition is probably wrong. More...

#include <char_traits.h>

List of all members.

Public Types

typedef _CharT char_type
typedef unsigned long int_type
typedef streampos pos_type
typedef streamoff off_type
typedef mbstate_t state_type

Static Public Methods

void assign (char_type &__c1, const char_type &__c2)
bool eq (const char_type &__c1, const char_type &__c2)
bool lt (const char_type &__c1, const char_type &__c2)
int compare (const char_type *__s1, const char_type *__s2, size_t __n)
size_t length (const char_type *__s)
const char_typefind (const char_type *__s, size_t __n, const char_type &__a)
char_typemove (char_type *__s1, const char_type *__s2, size_t __n)
char_typecopy (char_type *__s1, const char_type *__s2, size_t __n)
char_typeassign (char_type *__s, size_t __n, char_type __a)
char_type to_char_type (const int_type &__c)
int_type to_int_type (const char_type &__c)
bool eq_int_type (const int_type &__c1, const int_type &__c2)
int_type eof ()
int_type not_eof (const int_type &__c)


Detailed Description

template<class _CharT> struct std::char_traits

21.1.2 Basis for explicit _Traits specialization NB: For any given actual character type this definition is probably wrong.

Definition at line 48 of file char_traits.h.


Member Typedef Documentation

template<class _CharT>
typedef _CharT std::char_traits<_CharT>::char_type
 

Definition at line 50 of file char_traits.h.

Referenced by to_char_type().

template<class _CharT>
typedef unsigned long std::char_traits<_CharT>::int_type
 

Definition at line 51 of file char_traits.h.

Referenced by not_eof(), and to_int_type().

template<class _CharT>
typedef streamoff std::char_traits<_CharT>::off_type
 

Definition at line 53 of file char_traits.h.

template<class _CharT>
typedef streampos std::char_traits<_CharT>::pos_type
 

Definition at line 52 of file char_traits.h.

template<class _CharT>
typedef mbstate_t std::char_traits<_CharT>::state_type
 

Definition at line 54 of file char_traits.h.


Member Function Documentation

template<class _CharT>
char_type* std::char_traits<_CharT>::assign ( char_type * __s,
size_t __n,
char_type __a ) [inline, static]
 

Definition at line 111 of file char_traits.h.

template<class _CharT>
void std::char_traits<_CharT>::assign ( char_type & __c1,
const char_type & __c2 ) [inline, static]
 

Definition at line 58 of file char_traits.h.

Referenced by assign().

template<class _CharT>
int std::char_traits<_CharT>::compare ( const char_type * __s1,
const char_type * __s2,
size_t __n ) [inline, static]
 

Definition at line 73 of file char_traits.h.

template<class _CharT>
char_type* std::char_traits<_CharT>::copy ( char_type * __s1,
const char_type * __s2,
size_t __n ) [inline, static]
 

Definition at line 106 of file char_traits.h.

template<class _CharT>
int_type std::char_traits<_CharT>::eof ( ) [inline, static]
 

Definition at line 134 of file char_traits.h.

Referenced by not_eof().

template<class _CharT>
bool std::char_traits<_CharT>::eq ( const char_type & __c1,
const char_type & __c2 ) [inline, static]
 

Definition at line 63 of file char_traits.h.

Referenced by compare().

template<class _CharT>
bool std::char_traits<_CharT>::eq_int_type ( const int_type & __c1,
const int_type & __c2 ) [inline, static]
 

Definition at line 129 of file char_traits.h.

Referenced by not_eof().

template<class _CharT>
const char_type* std::char_traits<_CharT>::find ( const char_type * __s,
size_t __n,
const char_type & __a ) [inline, static]
 

Definition at line 92 of file char_traits.h.

template<class _CharT>
size_t std::char_traits<_CharT>::length ( const char_type * __s ) [inline, static]
 

Definition at line 83 of file char_traits.h.

template<class _CharT>
bool std::char_traits<_CharT>::lt ( const char_type & __c1,
const char_type & __c2 ) [inline, static]
 

Definition at line 68 of file char_traits.h.

Referenced by compare().

template<class _CharT>
char_type* std::char_traits<_CharT>::move ( char_type * __s1,
const char_type * __s2,
size_t __n ) [inline, static]
 

Definition at line 101 of file char_traits.h.

template<class _CharT>
int_type std::char_traits<_CharT>::not_eof ( const int_type & __c ) [inline, static]
 

Definition at line 138 of file char_traits.h.

template<class _CharT>
char_type std::char_traits<_CharT>::to_char_type ( const int_type & __c ) [inline, static]
 

Definition at line 120 of file char_traits.h.

template<class _CharT>
int_type std::char_traits<_CharT>::to_int_type ( const char_type & __c ) [inline, static]
 

Definition at line 125 of file char_traits.h.


The documentation for this struct was generated from the following file:
Generated at Tue May 1 16:30:09 2001 for libstdc++-v3 by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001