9 #ifndef INCLUDE_FUNAPI_UTILITY_STRING_HELPER_H_ 10 #define INCLUDE_FUNAPI_UTILITY_STRING_HELPER_H_ 22 FUNAPI_DLL_VISIBILITY int32_t
GetUtf8Length(
const std::string &s);
26 FUNAPI_DLL_VISIBILITY std::string
TruncateUtf8(
const std::string &s,
int k);
32 #endif // INCLUDE_FUNAPI_UTILITY_STRING_HELPER_H_
FUNAPI_DLL_VISIBILITY int32_t GetUtf8Length(const std::string &s)
utf-8 인코딩된 문자열 s의 길이를 반환한다 Counts characters of utf-8 encoded string 's' ...
FUNAPI_DLL_VISIBILITY std::string TruncateUtf8(const std::string &s, int k)
utf-8 인코딩된 문자열 s를 글자 수 제한 k개로 잘라내어 반환한다 truncates utf-8 encoded string ...