ReactOS 0.4.16-dev-340-g0540c21
char_traits< char > Class Reference

#include <char_traits.h>

Inheritance diagram for char_traits< char >:
Collaboration diagram for char_traits< char >:

Public Types

typedef char char_type
 
typedef int int_type
 
typedef streamoff off_type
 
typedef streampos pos_type
 
typedef mbstate_t state_type
 
- Public Types inherited from __char_traits_base< char, int >
typedef char char_type
 
typedef int int_type
 
typedef streamoff off_type
 
typedef streampos pos_type
 
typedef mbstate_t state_type
 
- Public Types inherited from __stlport_class< char_traits< char > >
typedef char_traits< char_Type
 

Static Public Member Functions

static char _STLP_CALL to_char_type (const int &__c)
 
static int _STLP_CALL to_int_type (const char &__c)
 
static int _STLP_CALL compare (const char *__s1, const char *__s2, size_t __n)
 
static size_t _STLP_CALL length (const char *__s)
 
static void _STLP_CALL assign (char &__c1, const char &__c2)
 
static char *_STLP_CALL assign (char *__s, size_t __n, char __c)
 
- Static Public Member Functions inherited from __char_traits_base< char, int >
static void _STLP_CALL assign (char_type &__c1, const char_type &__c2)
 
static char_type *_STLP_CALL assign (char_type *__s, size_t __n, char_type __c)
 
static bool _STLP_CALL eq (const char_type &__c1, const char_type &__c2)
 
static bool _STLP_CALL lt (const char_type &__c1, const char_type &__c2)
 
static int _STLP_CALL compare (const char_type *__s1, const char_type *__s2, size_t __n)
 
static size_t _STLP_CALL length (const char_type *__s)
 
static const char_type *_STLP_CALL find (const char_type *__s, size_t __n, const char_type &__c)
 
static char_type *_STLP_CALL move (char_type *__s1, const char_type *__s2, size_t _Sz)
 
static char_type *_STLP_CALL copy (char_type *__s1, const char_type *__s2, size_t __n)
 
static int_type _STLP_CALL not_eof (const int_type &__c)
 
static char_type _STLP_CALL to_char_type (const int_type &__c)
 
static int_type _STLP_CALL to_int_type (const char_type &__c)
 
static bool _STLP_CALL eq_int_type (const int_type &__c1, const int_type &__c2)
 
static int_type _STLP_CALL eof ()
 

Detailed Description

Definition at line 209 of file char_traits.h.

Member Typedef Documentation

◆ char_type

typedef char char_traits< char >::char_type

Definition at line 213 of file char_traits.h.

◆ int_type

typedef int char_traits< char >::int_type

Definition at line 214 of file char_traits.h.

◆ off_type

typedef streamoff char_traits< char >::off_type

Definition at line 215 of file char_traits.h.

◆ pos_type

typedef streampos char_traits< char >::pos_type

Definition at line 216 of file char_traits.h.

◆ state_type

typedef mbstate_t char_traits< char >::state_type

Definition at line 217 of file char_traits.h.

Member Function Documentation

◆ assign() [1/2]

static void _STLP_CALL char_traits< char >::assign ( char __c1,
const char __c2 
)
inlinestatic

Definition at line 231 of file char_traits.h.

232 { __c1 = __c2; }

◆ assign() [2/2]

static char *_STLP_CALL char_traits< char >::assign ( char __s,
size_t  __n,
char  __c 
)
inlinestatic

Definition at line 234 of file char_traits.h.

234 {
235 memset(__s, __c, __n);
236 return __s;
237 }
return __n
Definition: _algo.h:75
#define __c
Definition: schilyio.h:209
#define memset(x, y, z)
Definition: compat.h:39

◆ compare()

static int _STLP_CALL char_traits< char >::compare ( const char __s1,
const char __s2,
size_t  __n 
)
inlinestatic

Definition at line 225 of file char_traits.h.

226 { return memcmp(__s1, __s2, __n); }
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
Definition: utclib.c:112

◆ length()

static size_t _STLP_CALL char_traits< char >::length ( const char __s)
inlinestatic

Definition at line 228 of file char_traits.h.

229 { return strlen(__s); }
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269

◆ to_char_type()

static char _STLP_CALL char_traits< char >::to_char_type ( const int __c)
inlinestatic

Definition at line 219 of file char_traits.h.

220 { return (char)(unsigned char)__c; }
unsigned char
Definition: typeof.h:29

◆ to_int_type()

static int _STLP_CALL char_traits< char >::to_int_type ( const char __c)
inlinestatic

Definition at line 222 of file char_traits.h.

223 { return (unsigned char)__c; }

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