ReactOS  0.4.15-dev-1070-ge1a01de
my_codecvt Class Reference
Inheritance diagram for my_codecvt:
Collaboration diagram for my_codecvt:

Public Member Functions

 my_codecvt (size_t r=0)
 

Protected Member Functions

virtual result do_in (state_type &, const extern_type *first1, const extern_type *last1, const extern_type *&next1, intern_type *first2, intern_type *last2, intern_type *&next2) const
 
virtual bool do_always_noconv () const __NO_THROW
 
virtual int do_max_length () const __NO_THROW
 
virtual int do_encoding () const __NO_THROW
 

Detailed Description

Definition at line 458 of file codecvt_test.cpp.

Constructor & Destructor Documentation

◆ my_codecvt()

my_codecvt::my_codecvt ( size_t  r = 0)
inlineexplicit

Definition at line 460 of file codecvt_test.cpp.

461  : my_codecvt_base(r) {}
GLdouble GLdouble GLdouble r
Definition: gl.h:2055
std::codecvt< wchar_t, char, mbstate_t > my_codecvt_base

Member Function Documentation

◆ do_always_noconv()

virtual bool my_codecvt::do_always_noconv ( ) const
inlineprotectedvirtual

Definition at line 475 of file codecvt_test.cpp.

476  { return false; }

◆ do_encoding()

virtual int my_codecvt::do_encoding ( ) const
inlineprotectedvirtual

Definition at line 479 of file codecvt_test.cpp.

480  { return 2; }

◆ do_in()

virtual result my_codecvt::do_in ( state_type &  ,
const extern_type *  first1,
const extern_type *  last1,
const extern_type *&  next1,
intern_type *  first2,
intern_type *  last2,
intern_type *&  next2 
) const
inlineprotectedvirtual

Definition at line 464 of file codecvt_test.cpp.

467  {
468  for ( next1 = first1, next2 = first2; next1 < last1; next1 += 2 ) {
469  if ( (last1 - next1) < 2 || (last2 - next2) < 1 )
470  return partial;
471  *next2++ = (intern_type)((*(next1 + 1) << 8) | (*next1 & 255));
472  }
473  return ok;
474  }
#define ok(value,...)
Definition: atltest.h:57

◆ do_max_length()

virtual int my_codecvt::do_max_length ( ) const
inlineprotectedvirtual

Definition at line 477 of file codecvt_test.cpp.

478  { return 2; }

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