2012-04-26 11:39:49 +08:00
|
|
|
|
2012-04-26 09:34:42 +08:00
|
|
|
class CCString : public CCObject
|
|
|
|
{
|
|
|
|
int intValue() const;
|
|
|
|
unsigned int uintValue() const;
|
|
|
|
float floatValue() const;
|
|
|
|
double doubleValue() const;
|
|
|
|
bool boolValue() const;
|
|
|
|
const char* getCString() const;
|
|
|
|
unsigned int length() const;
|
|
|
|
|
2012-08-10 18:14:04 +08:00
|
|
|
int compare(const char* str) const;
|
2012-04-26 09:34:42 +08:00
|
|
|
bool isEqual(const CCObject* pObject);
|
|
|
|
|
2012-06-15 11:46:51 +08:00
|
|
|
static CCString* create(const char* pStr);
|
2012-08-10 18:14:04 +08:00
|
|
|
static CCString* createWithData(unsigned char* pData, unsigned long nLen);
|
2012-06-15 11:46:51 +08:00
|
|
|
static CCString* createWithContentsOfFile(const char* pszFileName);
|
2012-04-26 11:39:49 +08:00
|
|
|
};
|
|
|
|
|