• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

ut_wctomb.h

Go to the documentation of this file.
00001 #ifndef UT_WCTOMB_H
00002 #define UT_WCTOMB_H
00003 
00004 #include <limits.h>
00005 
00006 /* pre-emptive dismissal; ut_types.h is needed by just about everything,
00007  * so even if it's commented out in-file that's still a lot of work for
00008  * the preprocessor to do...
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   // TODO: make me private
00028   UT_Wctomb();
00029 
00030  private:
00031   // no implementations
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

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1