void ZLUnicodeUtil::utf8ToUcs4(Ucs4String &to, const std::string &from, int toLength) { utf8ToUcs4(to, from.data(), from.length(), toLength); }
vector<char_type> utf8_to_ucs4(char const * utf8str, size_t ls) { return iconv_convert<char_type>(utf8ToUcs4(), utf8str, ls); }