iFun Engine API  1.0.0-b2601
Great Technology for Great Games
 All Classes Files Functions Variables Typedefs Macros
string_helper.h
Go to the documentation of this file.
1 // Copyright (C) 2013-2016 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 <string>
14 
15 namespace fun {
16 
17 namespace util {
18 
21 int GetUtf8Length(const std::string &s);
22 
25 std::string TruncateUtf8(const std::string &s, int k);
26 
27 } // namespace util
28 
29 } // namespace fun
30 
31 #endif // INCLUDE_FUNAPI_UTILITY_STRING_HELPER_H_