#include <cxxtools/textcodec.h>

Public Types | |
| typedef I | InternT |
| typedef E | ExternT |
Public Member Functions | |
| TextCodec (size_t ref=0) | |
| Constructs a new TextCodec object. | |
| virtual | ~TextCodec () |
| Empty desctructor. | |
| size_t | refs () const |
Codecs are used to convert one Text-encoding into another Text-encoding. The internal and external data type can be specified using the template parameter 'I' (internal) and 'E' (external).
When used on a platform which supports locales and facets the conversion may use locale-specific conversion of the Text.
This class derives from facet std::codecvt. Further documentation can be found there.
| I | The character type associated with the internal code set. | |
| E | The character type associated with the external code set. |
Utf16Codec
Utf32Codec
| TextCodec | ( | size_t | ref = 0 |
) |
The internal and external type are specified by the template parameters of the class.
| ref | This parameter is passed to std::codecvt. When ref == 0 the locale takes care of deleting the facet. If ref == 1 the locale does not destroy the facet. |