diff options
author | Bernard Normier <bernard@zeroc.com> | 2007-07-18 11:27:58 -0400 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2007-07-18 11:27:58 -0400 |
commit | 0eb13ae23f4d69a73651a762d146c7d7408fbecc (patch) | |
tree | 261955664407de08b5b0e09af24f841ad4e5541f /cpp/include | |
parent | build fix (diff) | |
download | ice-0eb13ae23f4d69a73651a762d146c7d7408fbecc.tar.bz2 ice-0eb13ae23f4d69a73651a762d146c7d7408fbecc.tar.xz ice-0eb13ae23f4d69a73651a762d146c7d7408fbecc.zip |
Added default ctor
Diffstat (limited to 'cpp/include')
-rw-r--r-- | cpp/include/Ice/IconvStringConverter.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/cpp/include/Ice/IconvStringConverter.h b/cpp/include/Ice/IconvStringConverter.h index 7070f9eb378..e8b401dff68 100644 --- a/cpp/include/Ice/IconvStringConverter.h +++ b/cpp/include/Ice/IconvStringConverter.h @@ -15,6 +15,10 @@ #include <algorithm> #include <iconv.h> +#ifndef _WIN32 +#include <langinfo.h> +#endif + #if defined(_LIBICONV_VERSION) || (defined(__sun) && !defined(_XPG6)) // // See http://sourceware.org/bugzilla/show_bug.cgi?id=2962 @@ -44,14 +48,17 @@ class IconvStringConverter : public Ice::BasicStringConverter<charT> { public: - IconvStringConverter(const char* internalCode); +#ifdef _WIN32 + IconvStringConverter(const char*); +#else + IconvStringConverter(const char* = nl_langinfo(CODESET)); +#endif virtual ~IconvStringConverter(); - virtual Ice::Byte* toUTF8(const charT* sourceStart, const charT* sourceEnd, Ice::UTF8Buffer& buf) const; + virtual Ice::Byte* toUTF8(const charT*, const charT*, Ice::UTF8Buffer&) const; - virtual void fromUTF8(const Ice::Byte* sourceStart, const Ice::Byte* sourceEnd, - std::basic_string<charT>& target) const; + virtual void fromUTF8(const Ice::Byte*, const Ice::Byte*, std::basic_string<charT>&) const; private: @@ -66,7 +73,6 @@ private: #else mutable pthread_key_t _key; #endif - const char* _internalCode; }; |