| Boost.Locale

Public Types | Public Member Functions | Protected Member Functions | List of all members
boost::locale::generic_codecvt< CharType, CodecvtImpl, 4 > Class Template Reference

UTF-32 to/from narrow char codecvt facet to use with char32_t or wchar_t on POSIX platforms. More...

`#include <boost/locale/generic_codecvt.hpp>`

Inheritance diagram for boost::locale::generic_codecvt< CharType, CodecvtImpl, 4 >:

## Public Types
typedef CharType | uchar
Public Types inherited from boost::locale::generic_codecvt_base
enum | initial_convertion_state { to_unicode_state , from_unicode_state }
| Initial state for converting to or from Unicode code points, used by initial_state in derived classes. More...

## Public Member Functions
| generic_codecvt (size_t refs=0)
const CodecvtImpl & | implementation () const

## Protected Member Functions
std::codecvt_base::result | do_unshift (std::mbstate_t &, char *from, char *, char *&next) const override
int | do_encoding () const noexcept override
int | do_max_length () const noexcept override
bool | do_always_noconv () const noexcept override
int | do_length (std::mbstate_t &, const char *from, const char *from_end, size_t max) const override
std::codecvt_base::result | do_in (std::mbstate_t &, const char *from, const char *from_end, const char *&from_next, uchar *to, uchar *to_end, uchar *&to_next) const override
std::codecvt_base::result | do_out (std::mbstate_t &, const uchar *from, const uchar *from_end, const uchar *&from_next, char *to, char *to_end, char *&to_next) const override

## Detailed Description

template<typename CharType, typename CodecvtImpl>
class boost::locale::generic_codecvt< CharType, CodecvtImpl, 4 >

UTF-32 to/from narrow char codecvt facet to use with char32_t or wchar_t on POSIX platforms.

Its member functions implement standard virtual functions of basic codecvt. mbstate_t is not used for UTF-32 handling due to fixed length encoding

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

- boost/locale/generic_codecvt.hpp

- © Copyright 2009-2012 Artyom Beilis, Distributed under the Boost Software License, Version 1.0.