#include <CCString.h>
◆ CCString() [1/4]
◆ CCString() [2/4]
◆ CCString() [3/4]
◆ CCString() [4/4]
◆ ~CCString()
◆ acceptVisitor()
◆ boolValue()
◆ compare()
int compare |
( |
const char * |
| ) |
const |
◆ copyWithZone()
◆ create()
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.
◆ createWithContentsOfFile()
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.
◆ createWithData()
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.
◆ createWithFormat()
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. NA
◆ doubleValue()
double doubleValue |
( |
| ) |
const |
◆ floatValue()
float floatValue |
( |
| ) |
const |
◆ getCString()
const char * getCString |
( |
| ) |
const |
◆ initWithFormat()
bool initWithFormat |
( |
const char * |
format, |
|
|
|
... |
|
) |
| |
init a string with format, it's similar with the c function 'sprintf' NA
◆ intValue()
bool int intValue |
( |
| ) |
const |
◆ isEqual()
virtual bool isEqual |
( |
const CCObject * |
pObject | ) |
|
|
virtual |
◆ length()
unsigned int length |
( |
| ) |
const |
◆ operator=()
◆ uintValue()
unsigned int uintValue |
( |
| ) |
const |
convert to unsigned int value
◆ m_sString
The documentation for this class was generated from the following file:
- /home/runner/work/cocos-headers/cocos-headers/cocos2dx/cocoa/CCString.h