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
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user