#include <CCString.h>
|
static __String * | 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...
|
|
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 __String * | 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 kMax__StringLen macro in __String.cpp file. More...
|
|
static __String static __String * | createWithData (const unsigned char *pData, size_t nLen) |
| create a string with binary data More...
|
|
local | createWithData ( local pData, local nLen) |
| create a string with binary data More...
|
|
static __String * | createWithContentsOfFile (const char *filename) |
| create a string with a file, More...
|
|
void append |
( |
const std::string & |
str) | |
|
append additional characters at the end of its current value
void appendWithFormat |
( |
const char * |
format, |
|
|
|
... |
|
) |
| |
append(w/ format) additional characters at the end of its current value
int compare |
( |
const char * |
) | |
const |
__Array*
componentsSeparatedByString |
( |
const char * |
delimiter) | |
|
static __String* 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 String 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 String pointer which is an autorelease object pointer, it means that you needn't do a release operation unless you retain it.
static __String*
createWithContentsOfFile |
( |
const char * |
filename) | |
|
|
static |
create a string with a file,
- Returns
- A String pointer which is an autorelease object pointer, it means that you needn't do a release operation unless you retain it.
local createWithContentsOfFile |
( |
local |
filename) | |
|
|
static |
create a string with a file,
- Returns
- A String pointer which is an autorelease object pointer, it means that you needn't do a release operation unless you retain it.
static __String static
__String* createWithData |
( |
const unsigned char * |
pData, |
|
|
size_t |
nLen |
|
) |
| |
|
static |
create a string with binary data
- Returns
- A String 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 String pointer which is an autorelease object pointer, it means that you needn't do a release operation unless you retain it.
static __String* 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 kMax__StringLen macro in __String.cpp file.
- Returns
- A String pointer which is an autorelease object pointer, it means that you needn't do a release operation unless you retain it.
local createWithFormat |
( |
local |
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 kMax__StringLen macro in __String.cpp file.
- Returns
- A String 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'
bool int intValue |
( |
) | |
const |
virtual bool isEqual |
( |
const Ref * |
pObject) | |
|
|
virtual |
var isEqual |
( |
var |
pObject) | |
|
|
virtual |
local isEqual |
( |
local |
pObject) | |
|
|
virtual |
unsigned int uintValue |
( |
) | |
const |
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-develop/cocos/deprecated/CCString.h