#include <UTF32_Encoding_Converter.h>
Public Member Functions | |
ACE_UTF32_Encoding_Converter (bool swap=false) | |
virtual | ~ACE_UTF32_Encoding_Converter (void) |
This is a do nothing destructor. | |
virtual Result | to_utf8 (const void *source, size_t source_size, ACE_Byte *target, size_t target_size, bool strict=true) |
virtual Result | from_utf8 (const ACE_Byte *source, size_t source_size, void *target, size_t target_size, bool strict=true) |
Static Public Member Functions | |
static ACE_UTF32_Encoding_Converter * | encoded (const ACE_Byte *source, size_t source_size) |
Convert from UTF-32 to UTF-8 and from UTF-8 to UTF-32. This class implements the ACE_Encoding_Converter interface.
ACE_UTF32_Encoding_Converter::ACE_UTF32_Encoding_Converter | ( | bool | swap = false |
) |
This class has some similarities to the UTF16 converter, so we just construct our base class and pass the swap parameter.
virtual ACE_UTF32_Encoding_Converter::~ACE_UTF32_Encoding_Converter | ( | void | ) | [virtual] |
This is a do nothing destructor.
static ACE_UTF32_Encoding_Converter* ACE_UTF32_Encoding_Converter::encoded | ( | const ACE_Byte * | source, | |
size_t | source_size | |||
) | [static] |
This factory helper method determines if the source stream is UTF-32 encoded. If it is, allocate an ACE_UTF32_Encoding_Converter and return it. The caller then owns the allocated object.
Reimplemented from ACE_UTF16_Encoding_Converter.
virtual Result ACE_UTF32_Encoding_Converter::from_utf8 | ( | const ACE_Byte * | source, | |
size_t | source_size, | |||
void * | target, | |||
size_t | target_size, | |||
bool | strict = true | |||
) | [virtual] |
Convert the UTF-8 source into a UTF-32 encoding and store it in the provided target buffer.
Reimplemented from ACE_UTF16_Encoding_Converter.
virtual Result ACE_UTF32_Encoding_Converter::to_utf8 | ( | const void * | source, | |
size_t | source_size, | |||
ACE_Byte * | target, | |||
size_t | target_size, | |||
bool | strict = true | |||
) | [virtual] |
Convert the source from UTF-32 to UTF-8 and store it in the provided target buffer.
Reimplemented from ACE_UTF16_Encoding_Converter.