update limonp/codeconverter.hpp

This commit is contained in:
wyy 2014-05-29 23:57:32 +08:00
parent 059f05c25d
commit e96885c38e

View File

@ -39,7 +39,12 @@ namespace Limonp
private: private:
iconv_t _iconv_handle; iconv_t _iconv_handle;
}; };
inline bool code_convert(const char* from_charset, const char* to_charset, const string& from, string& to)
{
CodeConverter cc(from_charset, to_charset);
return cc.convert(from, to);
}
} }
#endif #endif