ReactOS  0.4.14-dev-317-g96040ec
codecvt< char, char, mbstate_t > Class Reference

#include <_codecvt.h>

Inheritance diagram for codecvt< char, char, mbstate_t >:
Collaboration diagram for codecvt< char, char, mbstate_t >:

Public Types

typedef char intern_type
 
typedef char extern_type
 
typedef mbstate_t state_type
 
- Public Types inherited from codecvt_base
enum  result { ok, partial, error, noconv }
 

Public Member Functions

 codecvt (size_t __refs=0)
 
result out (state_type &__state, const char *__from, const char *__from_end, const char *&__from_next, char *__to, char *__to_limit, char *&__to_next) const
 
result unshift (state_type &__state, char *__to, char *__to_limit, char *&__to_next) const
 
result in (state_type &__state, const char *__from, const char *__from_end, const char *&__from_next, char *__to, char *__to_limit, char *&__to_next) const
 
int encoding () const _STLP_NOTHROW
 
bool always_noconv () const _STLP_NOTHROW
 
int length (state_type &__state, const char *__from, const char *__from_end, size_t __max) const
 
int max_length () const _STLP_NOTHROW
 

Static Public Attributes

static _STLP_STATIC_DECLSPEC locale::id id = { 3 }
 

Protected Member Functions

 ~codecvt ()
 
virtual result do_out (state_type &, const char *__from, const char *, const char *&__from_next, char *__to, char *, char *&__to_next) const
 
virtual result do_in (state_type &, const char *__from, const char *, const char *&__from_next, char *__to, char *, char *&__to_next) const
 
virtual result do_unshift (state_type &, char *__to, char *, char *&__to_next) const
 
virtual int do_encoding () const _STLP_NOTHROW
 
virtual bool do_always_noconv () const _STLP_NOTHROW
 
virtual int do_length (state_type &__state, const char *__from, const char *__end, size_t __max) const
 
virtual int do_max_length () const _STLP_NOTHROW
 
- Protected Member Functions inherited from locale::facet
 facet (size_t __init_count=0)
 
virtual ~facet ()
 
- Protected Member Functions inherited from _Refcount_Base
 _Refcount_Base (__stl_atomic_t __n)
 
__stl_atomic_t _M_incr ()
 
__stl_atomic_t _M_decr ()
 

Private Member Functions

 codecvt (const codecvt< char, char, mbstate_t > &)
 
codecvt< char, char, mbstate_t > & operator= (const codecvt< char, char, mbstate_t > &)
 

Detailed Description

Definition at line 173 of file _codecvt.h.

Member Typedef Documentation

◆ extern_type

Definition at line 177 of file _codecvt.h.

◆ intern_type

Definition at line 176 of file _codecvt.h.

◆ state_type

Definition at line 178 of file _codecvt.h.

Constructor & Destructor Documentation

◆ codecvt() [1/2]

codecvt< char, char, mbstate_t >::codecvt ( size_t  __refs = 0)
inlineexplicit

Definition at line 180 of file _codecvt.h.

180 : locale::facet(__refs) {}

◆ ~codecvt()

Definition at line 28 of file codecvt.cpp.

28 {}

◆ codecvt() [2/2]

Member Function Documentation

◆ always_noconv()

bool codecvt< char, char, mbstate_t >::always_noconv ( ) const
inline

Definition at line 218 of file _codecvt.h.

218 { return do_always_noconv(); }
virtual bool do_always_noconv() const _STLP_NOTHROW
Definition: codecvt.cpp:40

◆ do_always_noconv()

bool codecvt< char, char, mbstate_t >::do_always_noconv ( ) const
protectedvirtual

Reimplemented in generator_codecvt, and eater_codecvt.

Definition at line 40 of file codecvt.cpp.

41 { return true; }

◆ do_encoding()

int codecvt< char, char, mbstate_t >::do_encoding ( ) const
protectedvirtual

Reimplemented in generator_codecvt, and eater_codecvt.

Definition at line 44 of file codecvt.cpp.

45 { return 1; }

◆ do_in()

codecvt_base::result codecvt< char, char, mbstate_t >::do_in ( state_type ,
const char __from,
const char ,
const char *&  __from_next,
char __to,
char ,
char *&  __to_next 
) const
protectedvirtual

Reimplemented in generator_codecvt, and eater_codecvt.

Definition at line 55 of file codecvt.cpp.

62 { __from_next = __from; __to_next = __to; return noconv; }

◆ do_length()

int codecvt< char, char, mbstate_t >::do_length ( state_type __state,
const char __from,
const char __end,
size_t  __max 
) const
protectedvirtual

Reimplemented in generator_codecvt, and eater_codecvt.

Definition at line 30 of file codecvt.cpp.

34 { return (int)(min) ( __STATIC_CAST(size_t, (end - from)), mx); }
#define __STATIC_CAST(__x, __y)
Definition: features.h:585
GLuint GLuint end
Definition: gl.h:1545
#define min(a, b)
Definition: monoChain.cc:55
CardRegion * from
Definition: spigame.cpp:19

◆ do_max_length()

int codecvt< char, char, mbstate_t >::do_max_length ( ) const
protectedvirtual

Reimplemented in generator_codecvt, and eater_codecvt.

Definition at line 36 of file codecvt.cpp.

37 { return 1; }

◆ do_out()

codecvt_base::result codecvt< char, char, mbstate_t >::do_out ( state_type ,
const char __from,
const char ,
const char *&  __from_next,
char __to,
char ,
char *&  __to_next 
) const
protectedvirtual

Definition at line 65 of file codecvt.cpp.

72 { __from_next = __from; __to_next = __to; return noconv; }

◆ do_unshift()

codecvt_base::result codecvt< char, char, mbstate_t >::do_unshift ( state_type ,
char __to,
char ,
char *&  __to_next 
) const
protectedvirtual

Definition at line 48 of file codecvt.cpp.

52 { __to_next = __to; return noconv; }

◆ encoding()

int codecvt< char, char, mbstate_t >::encoding ( ) const
inline

Definition at line 216 of file _codecvt.h.

216 { return do_encoding(); }
virtual int do_encoding() const _STLP_NOTHROW
Definition: codecvt.cpp:44

◆ in()

result codecvt< char, char, mbstate_t >::in ( state_type __state,
const char __from,
const char __from_end,
const char *&  __from_next,
char __to,
char __to_limit,
char *&  __to_next 
) const
inline

Definition at line 202 of file _codecvt.h.

208  {
209  _STLP_VERBOSE_ASSERT(__from <= __from_end, _StlMsg_INVALID_ARGUMENT)
210  _STLP_VERBOSE_ASSERT(__to <= __to_limit, _StlMsg_INVALID_ARGUMENT)
211  return do_in(__state,
212  __from, __from_end, __from_next,
213  __to, __to_limit, __to_next);
214  }
virtual result do_in(state_type &, const char *__from, const char *, const char *&__from_next, char *__to, char *, char *&__to_next) const
Definition: codecvt.cpp:55
#define _STLP_VERBOSE_ASSERT(expr, diagnostic)
Definition: _debug.h:439

◆ length()

int codecvt< char, char, mbstate_t >::length ( state_type __state,
const char __from,
const char __from_end,
size_t  __max 
) const
inline

Definition at line 220 of file _codecvt.h.

222  {
223  _STLP_VERBOSE_ASSERT(__from <= __from_end, _StlMsg_INVALID_ARGUMENT)
224  return do_length(__state, __from, __from_end, __max);
225  }
virtual int do_length(state_type &__state, const char *__from, const char *__end, size_t __max) const
Definition: codecvt.cpp:30
#define __max(a, b)
Definition: stdlib.h:113
#define _STLP_VERBOSE_ASSERT(expr, diagnostic)
Definition: _debug.h:439

◆ max_length()

int codecvt< char, char, mbstate_t >::max_length ( ) const
inline

Definition at line 227 of file _codecvt.h.

227 { return do_max_length(); }
virtual int do_max_length() const _STLP_NOTHROW
Definition: codecvt.cpp:36

◆ operator=()

◆ out()

result codecvt< char, char, mbstate_t >::out ( state_type __state,
const char __from,
const char __from_end,
const char *&  __from_next,
char __to,
char __to_limit,
char *&  __to_next 
) const
inline

Definition at line 182 of file _codecvt.h.

188  {
189  _STLP_VERBOSE_ASSERT(__from <= __from_end, _StlMsg_INVALID_ARGUMENT)
190  _STLP_VERBOSE_ASSERT(__to <= __to_limit, _StlMsg_INVALID_ARGUMENT)
191  return do_out(__state,
192  __from, __from_end, __from_next,
193  __to, __to_limit, __to_next);
194  }
virtual result do_out(state_type &, const char *__from, const char *, const char *&__from_next, char *__to, char *, char *&__to_next) const
Definition: codecvt.cpp:65
#define _STLP_VERBOSE_ASSERT(expr, diagnostic)
Definition: _debug.h:439

◆ unshift()

result codecvt< char, char, mbstate_t >::unshift ( state_type __state,
char __to,
char __to_limit,
char *&  __to_next 
) const
inline

Definition at line 196 of file _codecvt.h.

197  {
198  _STLP_VERBOSE_ASSERT(__to <= __to_limit, _StlMsg_INVALID_ARGUMENT)
199  return do_unshift(__state, __to, __to_limit, __to_next);
200  }
virtual result do_unshift(state_type &, char *__to, char *, char *&__to_next) const
Definition: codecvt.cpp:48
#define _STLP_VERBOSE_ASSERT(expr, diagnostic)
Definition: _debug.h:439

Member Data Documentation

◆ id

locale::id codecvt< char, char, mbstate_t >::id = { 3 }
static

Definition at line 229 of file _codecvt.h.


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