#include <UT_CharSetUtils.h>
Static Public Member Functions | |
| static bool | encodeUTF8 (const char *src_str, UT_String &out_str, const char *src_encoding=SRC_CODE_ENCODING) |
| Returns true if ok, false otherwise. | |
| static bool | decodeUTF8 (const char *src_str, UT_String &out_str, const char *out_encoding=SRC_CODE_ENCODING) |
| Returns true if ok, false otherwise. | |
| static bool | convert (const char *src_str, const char *src_encoding, UT_String &dst_str, const char *dst_encoding) |
Static Public Attributes | |
| static const char *const | SRC_CODE_ENCODING |
| static const char *const | XML_ENCODING |
Definition at line 29 of file UT_CharSetUtils.h.
| static bool UT_CharSetUtils::convert | ( | const char * | src_str, | |
| const char * | src_encoding, | |||
| UT_String & | dst_str, | |||
| const char * | dst_encoding | |||
| ) | [static] |
A more general character encoding utility (should be a part of UT_String class when we start supporting unicode) src_str - the input string bytestream. src_encoding - specifies the encoding of the input string. dst_str - the output string. dst_encoding - specifies the encoding of the output string.
| static bool UT_CharSetUtils::decodeUTF8 | ( | const char * | src_str, | |
| UT_String & | out_str, | |||
| const char * | out_encoding = SRC_CODE_ENCODING | |||
| ) | [static] |
Returns true if ok, false otherwise.
Conversion method from the source encoding of UTF-8 to the encoding specified by the out_encoding. src_str - the input string bytestream in the UTF-8 encoding. out_str - the output string bytesream in the out_encoding. out_encoding - specifies the encoding of the output string.
| static bool UT_CharSetUtils::encodeUTF8 | ( | const char * | src_str, | |
| UT_String & | out_str, | |||
| const char * | src_encoding = SRC_CODE_ENCODING | |||
| ) | [static] |
Returns true if ok, false otherwise.
Conversion method from the source encoding to UTF-8 Unicode encoding. src_str - the input string bytestream in the src_encoding out_str - the output string bytesream in the UTF-8 encoding. src_encoding - specifies the encoding of the source string.
const char* const UT_CharSetUtils::SRC_CODE_ENCODING [static] |
Definition at line 34 of file UT_CharSetUtils.h.
const char* const UT_CharSetUtils::XML_ENCODING [static] |
Definition at line 37 of file UT_CharSetUtils.h.
1.5.9