mirror of
https://github.com/yanyiwu/cppjieba.git
synced 2025-07-18 00:00:12 +08:00
update limonp/codeconverter.hpp
This commit is contained in:
parent
059f05c25d
commit
e96885c38e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user