cocos2d-x  3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ccUTF8.h File Reference
#include "base/CCPlatformMacros.h"
#include <vector>
#include <string>

Namespaces

 cocos2d
 Add deprecated global functions and variables here.
 
 cocos2d::StringUtils
 

Functions

CC_DLL bool  (const std::string &utf8, std::u16string &outUtf16)
 Converts utf8 string to utf16 string. More...
 
var  ( var utf8, var outUtf16)
 Converts utf8 string to utf16 string. More...
 
local  ( local utf8, local outUtf16)
 Converts utf8 string to utf16 string. More...
 
CC_DLL bool  (const std::u16string &utf16, std::string &outUtf8)
 Converts utf16 string to utf8 string. More...
 
local  ( local utf16, local outUtf8)
 Converts utf16 string to utf8 string. More...
 
CC_DLL void  (std::vector< char16_t > &str)
 Trims the unicode spaces at the end of char16_t vector. More...
 
var  ( var str)
 Trims the unicode spaces at the end of char16_t vector. More...
 
local  ( local str)
 Trims the unicode spaces at the end of char16_t vector. More...
 
CC_DLL bool  (char16_t ch)
 Whether the character is a whitespace character. More...
 
var  ( var ch)
 Whether the character is a whitespace character. More...
 
local  ( local ch)
 Whether the character is a whitespace character. More...
 
CC_DLL bool  (char16_t ch)
 Whether the character is a Chinese/Japanese/Korean character. More...
 
CC_DLL long  (const std::string &utf8)
 Returns the length of the string in characters. More...
 
local  ( local utf8)
 Returns the length of the string in characters. More...
 
CC_DLL unsigned int  (const std::vector< char16_t > &str, char16_t c)
 Gets the index of the last character that is not equal to the character given. More...
 
CC_DLL std::vector< char16_t >  (const std::u16string &utf16)
 Gets char16_t vector from a given utf16 string. More...