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

Namespaces

 cocos2d
 

Functions

CC_DLL void  (std::vector< unsigned short > *str)
 Trims the space characters at the end of UTF8 string. More...
 
local  ( local str)
 Trims the space characters at the end of UTF8 string. More...
 
CC_DLL bool  (unsigned short 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  (unsigned short ch)
 Whether the character is a Chinese/Japanese/Korean character. More...
 
CC_DLL int  (const unsigned short *str)
 Returns the character count in UTF16 string. More...
 
var  ( var str)
 Returns the character count in UTF16 string. More...
 
local  ( local str)
 Returns the character count in UTF16 string. More...
 
CC_DLL long  (const char *p)
 Returns the length of the string in characters. More...
 
var  ( var p)
 Returns the length of the string in characters. More...
 
local  ( local p)
 Returns the length of the string in characters. More...
 
CC_DLL unsigned int  (const std::vector< unsigned short > &str, unsigned short c)
 Find the last character that is not equal to the character given. More...
 
var  ( var str, var c)
 Find the last character that is not equal to the character given. More...
 
local  ( local str, local c)
 Find the last character that is not equal to the character given. More...
 
CC_DLL std::vector< unsigned
short > 
(const unsigned short *str)
 Gets UTF16 character vector from UTF16 string. More...
 
CC_DLL unsigned short *  (const char *utf8, int *outUTF16CharacterCount=NULL)
 Creates an utf8 string from a c string. More...
 
var  ( var utf8, var NULL)
 Creates an utf8 string from a c string. More...
 
local  ( local utf8, local NULL)
 Creates an utf8 string from a c string. More...
 
CC_DLL char *  (const unsigned short *utf16, int *outUTF8CharacterCount=NULL)
 Converts a string from UTF-16 to UTF-8. More...