update limonp/codeconverter.hpp

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

View File

@ -40,6 +40,11 @@ namespace Limonp
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