HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_CharSetUtils Class Reference

#include <UT_CharSetUtils.h>

Static Public Member Functions

static bool encodeUTF8 (const char *src_str, UT_WorkBuffer &out_str)
 Returns true if ok, false otherwise. More...
 
static bool decodeUTF8 (const char *src_str, UT_WorkBuffer &out_str)
 
static bool decodeUTF8 (const char *src_str, UT_String &out_str)
 
static bool decodeUTF8 (const char *src_str, UT_StringHolder &out_str)
 

Static Public Attributes

static const char *const SRC_CODE_ENCODING
 
static const char *const XML_ENCODING
 

Detailed Description

Definition at line 23 of file UT_CharSetUtils.h.

Member Function Documentation

static bool UT_CharSetUtils::decodeUTF8 ( const char *  src_str,
UT_WorkBuffer out_str 
)
static

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 - always Latin 1 Returns true if ok, false otherwise.

static bool UT_CharSetUtils::decodeUTF8 ( const char *  src_str,
UT_String out_str 
)
static

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 - always Latin 1 Returns true if ok, false otherwise.

static bool UT_CharSetUtils::decodeUTF8 ( const char *  src_str,
UT_StringHolder out_str 
)
static

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 - always Latin 1 Returns true if ok, false otherwise.

static bool UT_CharSetUtils::encodeUTF8 ( const char *  src_str,
UT_WorkBuffer out_str 
)
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 - always Latin 1

Member Data Documentation

const char* const UT_CharSetUtils::SRC_CODE_ENCODING
static

Definition at line 28 of file UT_CharSetUtils.h.

const char* const UT_CharSetUtils::XML_ENCODING
static

Definition at line 31 of file UT_CharSetUtils.h.


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