Go to the documentation of this file.00001 #ifndef UT_WCTOMB_H
00002 #define UT_WCTOMB_H
00003
00004 #include <limits.h>
00005
00006
00007
00008
00009
00010 #ifndef UT_TYPES_H
00011 #include "ut_types.h"
00012 #endif
00013 #include "ut_iconv.h"
00014
00015 class ABI_EXPORT UT_Wctomb
00016 {
00017 public:
00018
00019 void initialize();
00020 UT_Wctomb(const char* to_charset);
00021 ~UT_Wctomb();
00022 int wctomb(char * pC,int &length,UT_UCS4Char wc, int max_len = 100);
00023 void wctomb_or_fallback(char * pC,int &length,UT_UCS4Char wc, int max_len = 100);
00024
00025 void setOutCharset(const char* charset);
00026
00027
00028 UT_Wctomb();
00029
00030 private:
00031
00032 UT_Wctomb(const UT_Wctomb& v);
00033 UT_Wctomb& operator=(const UT_Wctomb &rhs);
00034
00035 UT_iconv_t cd;
00036 };
00037
00038 #endif // UT_WCTOMB_H