#include <ut_wctomb.h>
Public Member Functions | |
void | initialize () |
UT_Wctomb (const char *to_charset) | |
~UT_Wctomb () | |
int | wctomb (char *pC, int &length, UT_UCS4Char wc, int max_len=100) |
void | wctomb_or_fallback (char *pC, int &length, UT_UCS4Char wc, int max_len=100) |
void | setOutCharset (const char *charset) |
UT_Wctomb () | |
Private Member Functions | |
UT_Wctomb (const UT_Wctomb &v) | |
UT_Wctomb & | operator= (const UT_Wctomb &rhs) |
Private Attributes | |
UT_iconv_t | cd |
UT_Wctomb::UT_Wctomb | ( | const char * | to_charset | ) |
References cd, UCS_INTERNAL, UT_ASSERT, UT_iconv_isValid(), and UT_iconv_open().
UT_Wctomb::~UT_Wctomb | ( | ) |
References cd, UT_iconv_close(), and UT_iconv_isValid().
UT_Wctomb::UT_Wctomb | ( | ) |
References cd, UT_LocaleInfo::system(), UCS_INTERNAL, UT_ASSERT, UT_iconv_isValid(), and UT_iconv_open().
UT_Wctomb::UT_Wctomb | ( | const UT_Wctomb & | v | ) | [private] |
void UT_Wctomb::initialize | ( | void | ) |
References cd, and UT_iconv_reset().
Referenced by WordPerfect_Listener::_outputData(), Text_Listener::_outputData(), s_HRText_Listener::_outputData(), and _ucsToUTF8().
void UT_Wctomb::setOutCharset | ( | const char * | charset | ) |
References cd, ucs4Internal(), UT_iconv_close(), and UT_iconv_open().
Referenced by Text_Listener::_outputData(), and s_RTF_ListenerWriteDoc::s_RTF_ListenerWriteDoc().
int UT_Wctomb::wctomb | ( | char * | pC, | |
int & | length, | |||
UT_UCS4Char | wc, | |||
int | max_len = 100 | |||
) |
void UT_Wctomb::wctomb_or_fallback | ( | char * | pC, | |
int & | length, | |||
UT_UCS4Char | wc, | |||
int | max_len = 100 | |||
) |
References wctomb().
Referenced by s_RTF_ListenerWriteDoc::_outputData(), UT_UCS4_strcpy_to_char(), UT_UCS4_strlen_as_char(), and UT_UCS4_strncpy_to_char().
UT_iconv_t UT_Wctomb::cd [private] |
Referenced by initialize(), setOutCharset(), UT_Wctomb(), wctomb(), and ~UT_Wctomb().