00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef ACE_UTF32_ENCODING_CONVERTER_H
00017 #define ACE_UTF32_ENCODING_CONVERTER_H
00018
00019 #include "ace/pre.h"
00020
00021 #include "ace/UTF16_Encoding_Converter.h"
00022
00023 #if defined (ACE_USES_WCHAR)
00024 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00025
00026
00027
00028
00029 class ACE_UTF32_Encoding_Converter: public ACE_UTF16_Encoding_Converter
00030 {
00031 public:
00032
00033
00034 ACE_UTF32_Encoding_Converter (bool swap = false);
00035
00036
00037 virtual ~ACE_UTF32_Encoding_Converter (void);
00038
00039
00040
00041 virtual Result to_utf8 (const void* source,
00042 size_t source_size,
00043 ACE_Byte* target,
00044 size_t target_size,
00045 bool strict = true);
00046
00047
00048
00049 virtual Result from_utf8 (const ACE_Byte* source,
00050 size_t source_size,
00051 void* target,
00052 size_t target_size,
00053 bool strict = true);
00054
00055
00056
00057
00058 static ACE_UTF32_Encoding_Converter* encoded (const ACE_Byte* source,
00059 size_t source_size);
00060 };
00061
00062 ACE_END_VERSIONED_NAMESPACE_DECL
00063 #endif
00064
00065 #include "ace/post.h"
00066
00067 #endif