UT_CharSetUtils Class Reference

#include <UT_CharSetUtils.h>

List of all members.

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


Detailed Description

Definition at line 29 of file UT_CharSetUtils.h.


Member Function Documentation

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.


Member Data Documentation

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.


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

Generated on Fri May 25 00:10:46 2012 for HDK by  doxygen 1.5.9