codecvt< wchar_t, char, mbstate_t > Class Reference

#include <_codecvt.h>

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

locale::facet codecvt_base _Refcount_Base codecvt_byname< wchar_t, char, mbstate_t > List of all members.

Public Types

typedef wchar_t intern_type
typedef char extern_type
typedef mbstate_t state_type

Public Member Functions

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

Static Public Attributes

static _STLP_STATIC_MEMBER_DECLSPEC
locale::id 
id

Protected Member Functions

 ~codecvt ()
virtual result do_out (mbstate_t &__state, const wchar_t *__from, const wchar_t *__from_end, const wchar_t *&__from_next, char *__to, char *__to_limit, char *&__to_next) const
virtual result do_in (mbstate_t &__state, const char *__from, const char *__from_end, const char *&__from_next, wchar_t *__to, wchar_t *__to_limit, wchar_t *&__to_next) const
virtual result do_unshift (mbstate_t &__state, char *__to, char *__to_limit, char *&__to_next) const
virtual int do_encoding () const _STLP_NOTHROW
virtual bool do_always_noconv () const _STLP_NOTHROW
virtual int do_length (const mbstate_t &__state, const char *__from, const char *__end, size_t __max) const
virtual int do_max_length () const _STLP_NOTHROW

Friends

class _Locale_impl

Detailed Description

Definition at line 261 of file _codecvt.h.


Member Typedef Documentation

typedef wchar_t codecvt< wchar_t, char, mbstate_t >::intern_type

Definition at line 266 of file _codecvt.h.

typedef char codecvt< wchar_t, char, mbstate_t >::extern_type

Definition at line 267 of file _codecvt.h.

typedef mbstate_t codecvt< wchar_t, char, mbstate_t >::state_type

Definition at line 268 of file _codecvt.h.


Constructor & Destructor Documentation

codecvt< wchar_t, char, mbstate_t >::codecvt ( size_t  __refs = 0  )  [inline, explicit]

Definition at line 270 of file _codecvt.h.

codecvt< wchar_t, char, mbstate_t >::~codecvt (  )  [protected]

Definition at line 81 of file codecvt.cpp.


Member Function Documentation

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

Definition at line 272 of file _codecvt.h.

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

Definition at line 284 of file _codecvt.h.

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

Definition at line 289 of file _codecvt.h.

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

Definition at line 301 of file _codecvt.h.

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

Definition at line 303 of file _codecvt.h.

int codecvt< wchar_t, char, mbstate_t >::length ( const mbstate_t __state,
const char *  __from,
const char *  __end,
size_t  __max 
) const [inline]

Definition at line 305 of file _codecvt.h.

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

Definition at line 310 of file _codecvt.h.

codecvt< wchar_t, char, mbstate_t >::result codecvt< wchar_t, char, mbstate_t >::do_out ( mbstate_t __state,
const wchar_t *  __from,
const wchar_t *  __from_end,
const wchar_t *&  __from_next,
char *  __to,
char *  __to_limit,
char *&  __to_next 
) const [protected, virtual]

Reimplemented in codecvt_byname< wchar_t, char, mbstate_t >.

Definition at line 85 of file codecvt.cpp.

References copy(), min(), and codecvt_base::ok.

codecvt< wchar_t, char, mbstate_t >::result codecvt< wchar_t, char, mbstate_t >::do_in ( mbstate_t __state,
const char *  __from,
const char *  __from_end,
const char *&  __from_next,
wchar_t *  __to,
wchar_t *  __to_limit,
wchar_t *&  __to_next 
) const [protected, virtual]

Reimplemented in codecvt_byname< wchar_t, char, mbstate_t >.

Definition at line 100 of file codecvt.cpp.

References __REINTERPRET_CAST, copy(), min(), and codecvt_base::ok.

codecvt< wchar_t, char, mbstate_t >::result codecvt< wchar_t, char, mbstate_t >::do_unshift ( mbstate_t __state,
char *  __to,
char *  __to_limit,
char *&  __to_next 
) const [protected, virtual]

Reimplemented in codecvt_byname< wchar_t, char, mbstate_t >.

Definition at line 116 of file codecvt.cpp.

References codecvt_base::noconv.

int codecvt< wchar_t, char, mbstate_t >::do_encoding (  )  const [protected, virtual]

Reimplemented in codecvt_byname< wchar_t, char, mbstate_t >.

Definition at line 124 of file codecvt.cpp.

bool codecvt< wchar_t, char, mbstate_t >::do_always_noconv (  )  const [protected, virtual]

Reimplemented in codecvt_byname< wchar_t, char, mbstate_t >.

Definition at line 127 of file codecvt.cpp.

int codecvt< wchar_t, char, mbstate_t >::do_length ( const mbstate_t __state,
const char *  __from,
const char *  __end,
size_t  __max 
) const [protected, virtual]

Reimplemented in codecvt_byname< wchar_t, char, mbstate_t >.

Definition at line 130 of file codecvt.cpp.

References min().

int codecvt< wchar_t, char, mbstate_t >::do_max_length (  )  const [protected, virtual]

Reimplemented in codecvt_byname< wchar_t, char, mbstate_t >.

Definition at line 136 of file codecvt.cpp.


Friends And Related Function Documentation

friend class _Locale_impl [friend]

Reimplemented from locale::facet.

Definition at line 264 of file _codecvt.h.


Member Data Documentation

_STLP_STATIC_MEMBER_DECLSPEC locale::id codecvt< wchar_t, char, mbstate_t >::id [static]

Definition at line 312 of file _codecvt.h.


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



Generated on Mon Mar 10 15:32:59 2008 by  doxygen 1.5.1