iFun Engine API  1.0.0-b6053
Great Technology for Great Games
string_helper.h
Go to the documentation of this file.
1 // Copyright (C) 2013-2020 iFunFactory Inc. All Rights Reserved.
2 //
3 // This work is confidential and proprietary to iFunFactory Inc. and
4 // must not be used, disclosed, copied, or distributed without the prior
5 // consent of iFunFactory Inc.
6 
9 #ifndef INCLUDE_FUNAPI_UTILITY_STRING_HELPER_H_
10 #define INCLUDE_FUNAPI_UTILITY_STRING_HELPER_H_
11 
12 
13 #include <funapi/types.h>
14 
15 
16 namespace fun {
17 
18 namespace util {
19 
22 FUNAPI_DLL_VISIBILITY int32_t GetUtf8Length(const std::string &s);
23 
26 FUNAPI_DLL_VISIBILITY std::string TruncateUtf8(const std::string &s, int k);
27 
28 } // namespace util
29 
30 } // namespace fun
31 
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 &#39;s&#39; ...
Definition: json.h:18
FUNAPI_DLL_VISIBILITY std::string TruncateUtf8(const std::string &s, int k)
utf-8 인코딩된 문자열 s를 글자 수 제한 k개로 잘라내어 반환한다 truncates utf-8 encoded string ...