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

Namespaces

 cocos2d
 Add deprecated global functions and variables here.
 

Constant Groups

 cocos2d
 Add deprecated global functions and variables here.
 

Functions

CC_DLL int  (const unsigned short *str)
CC_DLL void  (std::vector< unsigned short > *str)
var  ( var str)
local  ( local str)
CC_DLL bool  (unsigned short ch)
 Whether the character is a whitespace character. More...
 
CC_DLL bool  (unsigned short ch)
 Whether the character is a Chinese/Japanese/Korean character. More...
 
CC_DLL long  (const char *p, int max)
 Returns the length of the string in characters. More...
 
CC_DLL unsigned int  (std::vector< unsigned short > str, unsigned short c)
 Find the last character that is not equal to the character given. More...
 
CC_DLL std::vector< unsigned
short > 
(const unsigned short *str)
CC_DLL unsigned short *  (const char *str_old, int length=-1, int *rUtf16Size=nullptr)
 Creates a utf8 string from a cstring. More...
 
var  ( var str_old, var 1, var nullptr)
 Creates a utf8 string from a cstring. More...
 
local  ( local str_old, local 1, local nullptr)
 Creates a utf8 string from a cstring. More...
 
CC_DLL char *  (const unsigned short *str, int len, long *items_read, long *items_written)
 Convert a string from UTF-16 to UTF-8. More...