lean cpp library
A lean C++ library providing efficient utility classes for high-performance C++ applications.
|
Encodes wchar_t strings as true 16-byte strings. More...
#include <wcharcvt.h>
Public Member Functions | |
wcharcvt (size_t refs=0) | |
Constructs a wchar_t facet object. | |
Protected Member Functions | |
virtual result | do_out (mbstate_t &, const wchar_t *from, const wchar_t *from_end, const wchar_t *&from_next, char *to, char *to_end, char *&to_next) const |
Copies the given wide-char string to a narrow-char string of double length (~reinterpret_cast). | |
virtual result | do_in (mbstate_t &, const char *from, const char *from_end, const char *&from_next, wchar_t *to, wchar_t *to_end, wchar_t *&to_next) const |
Copies the given narrow-char string to a wide-char string of half length (~reinterpret_cast). | |
virtual result | do_unshift (mbstate_t &, char *to, char *, char *&to_next) const |
No shifting done. | |
virtual int | do_length (mbstate_t &, const char *from, const char *end, size_t max) const |
Computes the length of the string to be encoded. | |
virtual int | do_max_length () const throw () |
Gets the (maximum) size of one wide-character. | |
virtual bool | do_always_noconv () const throw () |
No real conversion done. | |
virtual int | do_encoding () const throw () |
Gets the size of one wide-character. |
Encodes wchar_t strings as true 16-byte strings.