#include <CCString.h>
|
static CCString * | create (const std::string &str) |
| create a string with std string, you can also pass a c string pointer because the default constructor of std::string can access a c string pointer. More...
|
|
var | create ( var str) |
| create a string with std string, you can also pass a c string pointer because the default constructor of std::string can access a c string pointer. More...
|
|
local | create ( local str) |
| create a string with std string, you can also pass a c string pointer because the default constructor of std::string can access a c string pointer. More...
|
|
static CCString * | createWithFormat (const char *format,...) CC_FORMAT_PRINTF(1 |
| create a string with format, it's similar with the c function 'sprintf', the default buffer size is (1024*100) bytes, if you want to change it, you should modify the kMaxStringLen macro in CCString.cpp file. More...
|
|
var | createWithFormat ( var format) |
| create a string with format, it's similar with the c function 'sprintf', the default buffer size is (1024*100) bytes, if you want to change it, you should modify the kMaxStringLen macro in CCString.cpp file. More...
|
|
static CCString static CCString * | createWithData (const unsigned char *pData, unsigned long nLen) |
| create a string with binary data More...
|
|
static CCString * | createWithContentsOfFile (const char *pszFileName) |
| create a string with a file, More...
|
|
var | createWithContentsOfFile ( var pszFileName) |
| create a string with a file, More...
|
|
local | createWithContentsOfFile ( local pszFileName) |
| create a string with a file, More...
|
|
var acceptVisitor |
( |
var |
visitor) | |
|
|
virtual |
int compare |
( |
const char * |
) | |
const |
var copyWithZone |
( |
var |
pZone) | |
|
|
virtual |
local copyWithZone |
( |
local |
pZone) | |
|
|
virtual |
static CCString* create |
( |
const std::string & |
str) | |
|
|
static |
create a string with std string, you can also pass a c string pointer because the default constructor of std::string can access a c string pointer.
- Returns
- A CCString pointer which is an autorelease object pointer, it means that you needn't do a release operation unless you retain it.
create a string with std string, you can also pass a c string pointer because the default constructor of std::string can access a c string pointer.
- Returns
- A CCString pointer which is an autorelease object pointer, it means that you needn't do a release operation unless you retain it.
local create |
( |
local |
str) | |
|
|
static |
create a string with std string, you can also pass a c string pointer because the default constructor of std::string can access a c string pointer.
- Returns
- A CCString pointer which is an autorelease object pointer, it means that you needn't do a release operation unless you retain it.
static CCString*
createWithContentsOfFile |
( |
const char * |
pszFileName) | |
|
|
static |
create a string with a file,
- Returns
- A CCString pointer which is an autorelease object pointer, it means that you needn't do a release operation unless you retain it.
var createWithContentsOfFile |
( |
var |
pszFileName) | |
|
|
static |
create a string with a file,
- Returns
- A CCString pointer which is an autorelease object pointer, it means that you needn't do a release operation unless you retain it.
local createWithContentsOfFile |
( |
local |
pszFileName) | |
|
|
static |
create a string with a file,
- Returns
- A CCString pointer which is an autorelease object pointer, it means that you needn't do a release operation unless you retain it.
static CCString static
CCString* createWithData |
( |
const unsigned char * |
pData, |
|
|
unsigned long |
nLen |
|
) |
| |
|
static |
create a string with binary data
- Returns
- A CCString pointer which is an autorelease object pointer, it means that you needn't do a release operation unless you retain it.
var createWithData |
( |
var |
pData, |
|
|
var |
nLen |
|
) |
| |
|
static |
create a string with binary data
- Returns
- A CCString pointer which is an autorelease object pointer, it means that you needn't do a release operation unless you retain it.
local createWithData |
( |
local |
pData, |
|
|
local |
nLen |
|
) |
| |
|
static |
create a string with binary data
- Returns
- A CCString pointer which is an autorelease object pointer, it means that you needn't do a release operation unless you retain it.
static CCString* createWithFormat |
( |
const char * |
format, |
|
|
|
... |
|
) |
| |
|
static |
create a string with format, it's similar with the c function 'sprintf', the default buffer size is (1024*100) bytes, if you want to change it, you should modify the kMaxStringLen macro in CCString.cpp file.
- Returns
- A CCString pointer which is an autorelease object pointer, it means that you needn't do a release operation unless you retain it.
var createWithFormat |
( |
var |
format, |
|
|
|
... |
|
) |
| |
|
static |
create a string with format, it's similar with the c function 'sprintf', the default buffer size is (1024*100) bytes, if you want to change it, you should modify the kMaxStringLen macro in CCString.cpp file.
- Returns
- A CCString pointer which is an autorelease object pointer, it means that you needn't do a release operation unless you retain it.
double doubleValue |
( |
) | |
const |
float floatValue |
( |
) | |
const |
const char* getCString |
( |
) | |
const |
bool initWithFormat |
( |
const char * |
format, |
|
|
|
... |
|
) |
| |
init a string with format, it's similar with the c function 'sprintf'
var initWithFormat |
( |
var |
format, |
|
|
|
... |
|
) |
| |
init a string with format, it's similar with the c function 'sprintf'
bool int intValue |
( |
) | |
const |
virtual bool isEqual |
( |
const CCObject * |
pObject) | |
|
|
virtual |
var isEqual |
( |
var |
pObject) | |
|
|
virtual |
local isEqual |
( |
local |
pObject) | |
|
|
virtual |
unsigned int length |
( |
) | |
const |
unsigned int uintValue |
( |
) | |
const |
convert to unsigned int value
convert to unsigned int value
convert to unsigned int value
The documentation for this class was generated from the following file:
- /Users/cocos2d/MyWork/cocos2d-x/cocos2dx/cocoa/CCString.h