Inheritance diagram for CP_PropertyList::String:
Public Types | |
typedef CFStringRef | StringRef |
typedef std::reverse_iterator< const_iterator > | const_reverse_iterator |
typedef std::reverse_iterator< iterator > | reverse_iterator |
enum | { kCP_E_String_BufferSize = 32, npos = MAX_UINT_32 } |
Public Member Functions | |
String () | |
String (const String &inSrc) | |
String (const CP_String &inSrc) | |
String (CFStringRef inRef, bool inRetain) | |
virtual | ~String () throw () |
virtual void | PrintToLog (CP_LogFile &inLogFile, SInt32 inLevel=0, SInt32 inIndentLevel=0) const |
virtual NodeType_t | NodeType () const throw () |
virtual CFTypeRef | GetNodeCFRef () const |
virtual void | WriteXMLData (CP_OutStream &inXMLDataStream) const |
Reference | |
UInt32 | AddReference () const |
UInt32 | RemoveReference () const |
Autorelease | |
void | Autorelease () const |
Getters | |
UInt32 | GetRefCount () const |
Reference | |
UInt32 | AddReference () const |
UInt32 | RemoveReference () const |
Autorelease | |
void | Autorelease () const |
Getters | |
UInt32 | GetRefCount () const |
Reference | |
UInt32 | AddReference () const |
UInt32 | RemoveReference () const |
Autorelease | |
void | Autorelease () const |
Getters | |
UInt32 | GetRefCount () const |
Reference | |
UInt32 | AddReference () const |
UInt32 | RemoveReference () const |
Autorelease | |
void | Autorelease () const |
Getters | |
UInt32 | GetRefCount () const |
Reference | |
UInt32 | AddReference () const |
UInt32 | RemoveReference () const |
Autorelease | |
void | Autorelease () const |
Getters | |
UInt32 | GetRefCount () const |
Reference | |
UInt32 | AddReference () const |
UInt32 | RemoveReference () const |
Autorelease | |
void | Autorelease () const |
Getters | |
UInt32 | GetRefCount () const |
Reference | |
UInt32 | AddReference () const |
UInt32 | RemoveReference () const |
Autorelease | |
void | Autorelease () const |
Getters | |
UInt32 | GetRefCount () const |
Reference | |
UInt32 | AddReference () const |
UInt32 | RemoveReference () const |
Autorelease | |
void | Autorelease () const |
Getters | |
UInt32 | GetRefCount () const |
Reference | |
UInt32 | AddReference () const |
UInt32 | RemoveReference () const |
Autorelease | |
void | Autorelease () const |
Getters | |
UInt32 | GetRefCount () const |
Reference | |
UInt32 | AddReference () const |
UInt32 | RemoveReference () const |
Autorelease | |
void | Autorelease () const |
Getters | |
UInt32 | GetRefCount () const |
Reference | |
UInt32 | AddReference () const |
UInt32 | RemoveReference () const |
Autorelease | |
void | Autorelease () const |
Getters | |
UInt32 | GetRefCount () const |
Reference | |
UInt32 | AddReference () const |
UInt32 | RemoveReference () const |
Autorelease | |
void | Autorelease () const |
Getters | |
UInt32 | GetRefCount () const |
Reference | |
UInt32 | AddReference () const |
UInt32 | RemoveReference () const |
Autorelease | |
void | Autorelease () const |
Getters | |
UInt32 | GetRefCount () const |
Reference | |
UInt32 | AddReference () const |
UInt32 | RemoveReference () const |
Autorelease | |
void | Autorelease () const |
Getters | |
UInt32 | GetRefCount () const |
Reference | |
UInt32 | AddReference () const |
UInt32 | RemoveReference () const |
Autorelease | |
void | Autorelease () const |
Getters | |
UInt32 | GetRefCount () const |
Reference | |
UInt32 | AddReference () const |
UInt32 | RemoveReference () const |
Autorelease | |
void | Autorelease () const |
Getters | |
UInt32 | GetRefCount () const |
Reference | |
UInt32 | AddReference () const |
UInt32 | RemoveReference () const |
Autorelease | |
void | Autorelease () const |
Getters | |
UInt32 | GetRefCount () const |
Reference | |
UInt32 | AddReference () const |
UInt32 | RemoveReference () const |
Autorelease | |
void | Autorelease () const |
Getters | |
UInt32 | GetRefCount () const |
Reference | |
UInt32 | AddReference () const |
UInt32 | RemoveReference () const |
Autorelease | |
void | Autorelease () const |
Getters | |
UInt32 | GetRefCount () const |
Reference | |
UInt32 | AddReference () const |
UInt32 | RemoveReference () const |
Autorelease | |
void | Autorelease () const |
Getters | |
UInt32 | GetRefCount () const |
Reference | |
UInt32 | AddReference () const |
UInt32 | RemoveReference () const |
Autorelease | |
void | Autorelease () const |
Getters | |
UInt32 | GetRefCount () const |
Accessors | |
const char * | c_str (bool inLossy=false, const CP_TextEncoder *inTextEncoder=NULL) const |
const CPUniChar * | w_str () const |
const char * | utf8_str () const |
CPUniChar | operator[] (UInt32 inIndex) const |
reference | operator[] (UInt32 inIndex) |
CPUniChar | at (UInt32 inIndex) const |
reference | at (UInt32 inIndex) |
CPUniChar | front () const |
reference | front () |
CPUniChar | back () const |
reference | back () |
StringRef | Ref () const |
Appending | |
CP_String & | operator+= (char inChar) |
CP_String & | operator+= (unsigned char inChar) |
CP_String & | operator+= (CPUniChar inChar) |
CP_String & | operator+= (const char *inString) |
CP_String & | operator+= (const CPUniChar *inString) |
CP_String & | operator+= (const CP_String &inString) |
CP_String & | append (char ch, const CP_TextEncoder *inTextEncoder=NULL) |
CP_String & | append (unsigned char ch, const CP_TextEncoder *inTextEncoder=NULL) |
CP_String & | append (CPUniChar ch) |
CP_String & | append (UInt32 inCount, CPUniChar inChar) |
CP_String & | append (const char *inString, const CP_TextEncoder *inTextEncoder=NULL) |
CP_String & | append (const char *inString, UInt32 inLength, const CP_TextEncoder *inTextEncoder=NULL) |
CP_String & | append (const CPUniChar *inString) |
CP_String & | append (const CPUniChar *inString, UInt32 inLength) |
CP_String & | append (const CP_String &inString, UInt32 inStartIndex=0, UInt32 inLength=npos) |
void | push_back (CPUniChar inChar) |
Compare | |
SInt32 | compare (const char *inChar, const CP_TextEncoder *inTextEncoder=NULL) const |
SInt32 | compare (const CPUniChar *inChar) const |
SInt32 | compare (const CP_String &inString) const |
SInt32 | compare (UInt32 inIndex, UInt32 inCount, const CPUniChar *inString, UInt32 inLength) const |
SInt32 | compare (UInt32 inIndex, UInt32 inCount, const CP_String &inString, UInt32 inStartIndex=0, UInt32 inLength=npos) const |
Erasing | |
CP_String & | erase (UInt32 inIndex=0, UInt32 inCount=npos) |
void | pop_back () |
Finding | |
UInt32 | find (CPUniChar inChar, UInt32 inIndex=0) const |
UInt32 | find (const char *inString, UInt32 inIndex=0, const CP_TextEncoder *inTextEncoder=NULL) const |
UInt32 | find (const char *inString, UInt32 inIndex, UInt32 inLength, const CP_TextEncoder *inTextEncoder=NULL) const |
UInt32 | find (const CPUniChar *inString, UInt32 inndex=0) const |
UInt32 | find (const CPUniChar *inString, UInt32 inIndex, UInt32 inLength) const |
UInt32 | find (const CP_String &inString, UInt32 inndex=0) const |
UInt32 | rfind (CPUniChar inChar, UInt32 inIndex=npos) const |
UInt32 | rfind (const char *inString, UInt32 inIndex=npos, const CP_TextEncoder *inTextEncoder=NULL) const |
UInt32 | rfind (const char *inString, UInt32 inIndex, UInt32 inLength, const CP_TextEncoder *inTextEncoder=NULL) const |
UInt32 | rfind (const CPUniChar *inString, UInt32 inIndex=npos) const |
UInt32 | rfind (const CPUniChar *inString, UInt32 inIndex, UInt32 inLength) const |
UInt32 | rfind (const CP_String &inString, UInt32 inIndex=npos) const |
UInt32 | find_first_of (CPUniChar inChar, UInt32 inIndex=0) const |
UInt32 | find_first_of (const char *inString, UInt32 inIndex=0, const CP_TextEncoder *inTextEncoder=NULL) const |
UInt32 | find_first_of (const char *inString, UInt32 inIndex, UInt32 inLength, const CP_TextEncoder *inTextEncoder=NULL) const |
UInt32 | find_first_of (const CPUniChar *inString, UInt32 inIndex=0) const |
UInt32 | find_first_of (const CPUniChar *inString, UInt32 inIndex, UInt32 inLength) const |
UInt32 | find_first_of (const CP_String &inString, UInt32 inIndex=0) const |
UInt32 | find_last_of (CPUniChar inChar, UInt32 inIndex=npos) const |
UInt32 | find_last_of (const char *inString, UInt32 inIndex=npos, const CP_TextEncoder *inTextEncoder=NULL) const |
UInt32 | find_last_of (const char *inString, UInt32 inIndex, UInt32 inLength, const CP_TextEncoder *inTextEncoder=NULL) const |
UInt32 | find_last_of (const CPUniChar *inString, UInt32 inIndex=npos) const |
UInt32 | find_last_of (const CPUniChar *inString, UInt32 inIndex, UInt32 inLength) const |
UInt32 | find_last_of (const CP_String &inString, UInt32 inIndex=npos) const |
UInt32 | find_first_not_of (CPUniChar inChar, UInt32 inIndex=0) const |
UInt32 | find_first_not_of (const char *inString, UInt32 inIndex=0, const CP_TextEncoder *inTextEncoder=NULL) const |
UInt32 | find_first_not_of (const char *inString, UInt32 inIndex, UInt32 inLength, const CP_TextEncoder *inTextEncoder=NULL) const |
UInt32 | find_first_not_of (const CPUniChar *inString, UInt32 inIndex=0) const |
UInt32 | find_first_not_of (const CPUniChar *inString, UInt32 inIndex, UInt32 inLength) const |
UInt32 | find_first_not_of (const CP_String &inString, UInt32 inIndex=0) const |
UInt32 | find_last_not_of (CPUniChar inChar, UInt32 inIndex=npos) const |
UInt32 | find_last_not_of (const char *inString, UInt32 inIndex=npos, const CP_TextEncoder *inTextEncoder=NULL) const |
UInt32 | find_last_not_of (const char *inString, UInt32 inIndex, UInt32 inLength, const CP_TextEncoder *inTextEncoder=NULL) const |
UInt32 | find_last_not_of (const CPUniChar *inString, UInt32 inIndex=npos) const |
UInt32 | find_last_not_of (const CPUniChar *inString, UInt32 inIndex, UInt32 inLength) const |
UInt32 | find_last_not_of (const CP_String &inString, UInt32 inIndex=npos) const |
Inserting | |
CP_String & | insert (UInt32 inIndex, CPUniChar inChar) |
CP_String & | insert (UInt32 inIndex, UInt32 inCount, CPUniChar inChar) |
CP_String & | insert (UInt32 inIndex, const char *inString, const CP_TextEncoder *inTextEncoder=NULL) |
CP_String & | insert (UInt32 inIndex, const char *inString, UInt32 inLength, const CP_TextEncoder *inTextEncoder=NULL) |
CP_String & | insert (UInt32 inIndex, const CPUniChar *inString) |
CP_String & | insert (UInt32 inIndex, const CPUniChar *inString, UInt32 inLength) |
CP_String & | insert (UInt32 inIndex, const CP_String &inString, UInt32 inStartIndex=0, UInt32 inLength=npos) |
Replacing | |
CP_String & | replace (UInt32 inIndex, UInt32 inCount, UInt32 inCharCount, CPUniChar inChar) |
CP_String & | replace (UInt32 inIndex, UInt32 inCount, const char *inString, const CP_TextEncoder *inTextEncoder=NULL) |
CP_String & | replace (UInt32 inIndex, UInt32 inCount, const char *inString, UInt32 InLength, const CP_TextEncoder *inTextEncoder=NULL) |
CP_String & | replace (UInt32 inIndex, UInt32 inCount, const CPUniChar *inString) |
CP_String & | replace (UInt32 inIndex, UInt32 inCount, const CPUniChar *inString, UInt32 inLength) |
CP_String & | replace (UInt32 inIndex, UInt32 inCount, const CP_String &inString, UInt32 inStartIndex=0, UInt32 inLength=npos) |
Size | |
UInt32 | length () const |
UInt32 | size () const |
void | resize (UInt32 inNewSize) |
void | resize (UInt32 inNewSize, CPUniChar inChar) |
UInt32 | capacity () const |
bool | Empty () const |
bool | empty () const |
void | clear () |
Iterators | |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
reverse_iterator | rbegin () |
const_reverse_iterator | rbegin () const |
reverse_iterator | rend () |
const_reverse_iterator | rend () const |
Misc | |
CP_String | substr (UInt32 inIndex=0, UInt32 inCount=npos) const |
UInt32 | copy (char *inOutBuffer, UInt32 inBufferSize, UInt32 inCount, UInt32 *outUsedBufferSize, UInt32 inIndex=0, const CP_TextEncoder *inTextEncoder=NULL, bool inLossy=false) const |
UInt32 | copy (CPUniChar *inOutBuffer, UInt32 inCount, UInt32 inIndex=0) const |
void | swap (CP_String &inString) |
void | reserve (UInt32 inCapacity) |
Setters | |
void | Set (const unsigned char *inPString, CFStringEncoding inEncoding) |
Substring | |
void | Substring (CFRange inRange, CPUniChar *inOutBuffer) const |
Reference | |
UInt32 | AddReference () const |
UInt32 | RemoveReference () const |
Autorelease | |
void | Autorelease () const |
Getters | |
UInt32 | GetRefCount () const |
Reference | |
UInt32 | AddReference () const |
UInt32 | RemoveReference () const |
Autorelease | |
void | Autorelease () const |
Getters | |
UInt32 | GetRefCount () const |
Reference | |
UInt32 | AddReference () const |
UInt32 | RemoveReference () const |
Autorelease | |
void | Autorelease () const |
Getters | |
UInt32 | GetRefCount () const |
Reference | |
UInt32 | AddReference () const |
UInt32 | RemoveReference () const |
Autorelease | |
void | Autorelease () const |
Getters | |
UInt32 | GetRefCount () const |
Reference | |
UInt32 | AddReference () const |
UInt32 | RemoveReference () const |
Autorelease | |
void | Autorelease () const |
Getters | |
UInt32 | GetRefCount () const |
Reference | |
UInt32 | AddReference () const |
UInt32 | RemoveReference () const |
Autorelease | |
void | Autorelease () const |
Getters | |
UInt32 | GetRefCount () const |
Reference | |
UInt32 | AddReference () const |
UInt32 | RemoveReference () const |
Autorelease | |
void | Autorelease () const |
Getters | |
UInt32 | GetRefCount () const |
Reference | |
UInt32 | AddReference () const |
UInt32 | RemoveReference () const |
Autorelease | |
void | Autorelease () const |
Getters | |
UInt32 | GetRefCount () const |
Reference | |
UInt32 | AddReference () const |
UInt32 | RemoveReference () const |
Autorelease | |
void | Autorelease () const |
Getters | |
UInt32 | GetRefCount () const |
Reference | |
UInt32 | AddReference () const |
UInt32 | RemoveReference () const |
Autorelease | |
void | Autorelease () const |
Getters | |
UInt32 | GetRefCount () const |
Reference | |
UInt32 | AddReference () const |
UInt32 | RemoveReference () const |
Autorelease | |
void | Autorelease () const |
Getters | |
UInt32 | GetRefCount () const |
Reference | |
UInt32 | AddReference () const |
UInt32 | RemoveReference () const |
Autorelease | |
void | Autorelease () const |
Getters | |
UInt32 | GetRefCount () const |
Reference | |
UInt32 | AddReference () const |
UInt32 | RemoveReference () const |
Autorelease | |
void | Autorelease () const |
Getters | |
UInt32 | GetRefCount () const |
Reference | |
UInt32 | AddReference () const |
UInt32 | RemoveReference () const |
Autorelease | |
void | Autorelease () const |
Getters | |
UInt32 | GetRefCount () const |
Accessors | |
const char * | c_str (bool inLossy=false, const CP_TextEncoder *inTextEncoder=NULL) const |
const CPUniChar * | w_str () const |
const char * | utf8_str () const |
CPUniChar | operator[] (UInt32 inIndex) const |
reference | operator[] (UInt32 inIndex) |
CPUniChar | at (UInt32 inIndex) const |
reference | at (UInt32 inIndex) |
CPUniChar | front () const |
reference | front () |
CPUniChar | back () const |
reference | back () |
StringRef | Ref () const |
Appending | |
CP_String & | operator+= (char inChar) |
CP_String & | operator+= (unsigned char inChar) |
CP_String & | operator+= (CPUniChar inChar) |
CP_String & | operator+= (const char *inString) |
CP_String & | operator+= (const CPUniChar *inString) |
CP_String & | operator+= (const CP_String &inString) |
CP_String & | append (char ch, const CP_TextEncoder *inTextEncoder=NULL) |
CP_String & | append (unsigned char ch, const CP_TextEncoder *inTextEncoder=NULL) |
CP_String & | append (CPUniChar ch) |
CP_String & | append (UInt32 inCount, CPUniChar inChar) |
CP_String & | append (const char *inString, const CP_TextEncoder *inTextEncoder=NULL) |
CP_String & | append (const char *inString, UInt32 inLength, const CP_TextEncoder *inTextEncoder=NULL) |
CP_String & | append (const CPUniChar *inString) |
CP_String & | append (const CPUniChar *inString, UInt32 inLength) |
CP_String & | append (const CP_String &inString, UInt32 inStartIndex=0, UInt32 inLength=npos) |
void | push_back (CPUniChar inChar) |
Assignment | |
CP_String & | assign (char inChar, const CP_TextEncoder *inTextEncoder=NULL) |
CP_String & | assign (CPUniChar inChar) |
CP_String & | assign (UInt32 inCount, char inChar, const CP_TextEncoder *inTextEncoder=NULL) |
CP_String & | assign (UInt32 inCount, CPUniChar inChar) |
CP_String & | assign (const char *inString, const CP_TextEncoder *inTextEncoder=NULL) |
CP_String & | assign (const char *inString, UInt32 inLength, const CP_TextEncoder *inTextEncoder=NULL) |
CP_String & | assign (const CPUniChar *inString) |
CP_String & | assign (const CPUniChar *inString, UInt32 inLength) |
CP_String & | assign (const CP_String &inString, UInt32 inStartIndex=0, UInt32 inLength=npos) |
Compare | |
SInt32 | compare (const char *inChar, const CP_TextEncoder *inTextEncoder=NULL) const |
SInt32 | compare (const CPUniChar *inChar) const |
SInt32 | compare (const CP_String &inString) const |
SInt32 | compare (UInt32 inIndex, UInt32 inCount, const CPUniChar *inString, UInt32 inLength) const |
SInt32 | compare (UInt32 inIndex, UInt32 inCount, const CP_String &inString, UInt32 inStartIndex=0, UInt32 inLength=npos) const |
Erasing | |
CP_String & | erase (UInt32 inIndex=0, UInt32 inCount=npos) |
void | pop_back () |
Finding | |
UInt32 | find (CPUniChar inChar, UInt32 inIndex=0) const |
UInt32 | find (const char *inString, UInt32 inIndex=0, const CP_TextEncoder *inTextEncoder=NULL) const |
UInt32 | find (const char *inString, UInt32 inIndex, UInt32 inLength, const CP_TextEncoder *inTextEncoder=NULL) const |
UInt32 | find (const CPUniChar *inString, UInt32 inndex=0) const |
UInt32 | find (const CPUniChar *inString, UInt32 inIndex, UInt32 inLength) const |
UInt32 | find (const CP_String &inString, UInt32 inndex=0) const |
UInt32 | rfind (CPUniChar inChar, UInt32 inIndex=npos) const |
UInt32 | rfind (const char *inString, UInt32 inIndex=npos, const CP_TextEncoder *inTextEncoder=NULL) const |
UInt32 | rfind (const char *inString, UInt32 inIndex, UInt32 inLength, const CP_TextEncoder *inTextEncoder=NULL) const |
UInt32 | rfind (const CPUniChar *inString, UInt32 inIndex=npos) const |
UInt32 | rfind (const CPUniChar *inString, UInt32 inIndex, UInt32 inLength) const |
UInt32 | rfind (const CP_String &inString, UInt32 inIndex=npos) const |
UInt32 | find_first_of (CPUniChar inChar, UInt32 inIndex=0) const |
UInt32 | find_first_of (const char *inString, UInt32 inIndex=0, const CP_TextEncoder *inTextEncoder=NULL) const |
UInt32 | find_first_of (const char *inString, UInt32 inIndex, UInt32 inLength, const CP_TextEncoder *inTextEncoder=NULL) const |
UInt32 | find_first_of (const CPUniChar *inString, UInt32 inIndex=0) const |
UInt32 | find_first_of (const CPUniChar *inString, UInt32 inIndex, UInt32 inLength) const |
UInt32 | find_first_of (const CP_String &inString, UInt32 inIndex=0) const |
UInt32 | find_last_of (CPUniChar inChar, UInt32 inIndex=npos) const |
UInt32 | find_last_of (const char *inString, UInt32 inIndex=npos, const CP_TextEncoder *inTextEncoder=NULL) const |
UInt32 | find_last_of (const char *inString, UInt32 inIndex, UInt32 inLength, const CP_TextEncoder *inTextEncoder=NULL) const |
UInt32 | find_last_of (const CPUniChar *inString, UInt32 inIndex=npos) const |
UInt32 | find_last_of (const CPUniChar *inString, UInt32 inIndex, UInt32 inLength) const |
UInt32 | find_last_of (const CP_String &inString, UInt32 inIndex=npos) const |
UInt32 | find_first_not_of (CPUniChar inChar, UInt32 inIndex=0) const |
UInt32 | find_first_not_of (const char *inString, UInt32 inIndex=0, const CP_TextEncoder *inTextEncoder=NULL) const |
UInt32 | find_first_not_of (const char *inString, UInt32 inIndex, UInt32 inLength, const CP_TextEncoder *inTextEncoder=NULL) const |
UInt32 | find_first_not_of (const CPUniChar *inString, UInt32 inIndex=0) const |
UInt32 | find_first_not_of (const CPUniChar *inString, UInt32 inIndex, UInt32 inLength) const |
UInt32 | find_first_not_of (const CP_String &inString, UInt32 inIndex=0) const |
UInt32 | find_last_not_of (CPUniChar inChar, UInt32 inIndex=npos) const |
UInt32 | find_last_not_of (const char *inString, UInt32 inIndex=npos, const CP_TextEncoder *inTextEncoder=NULL) const |
UInt32 | find_last_not_of (const char *inString, UInt32 inIndex, UInt32 inLength, const CP_TextEncoder *inTextEncoder=NULL) const |
UInt32 | find_last_not_of (const CPUniChar *inString, UInt32 inIndex=npos) const |
UInt32 | find_last_not_of (const CPUniChar *inString, UInt32 inIndex, UInt32 inLength) const |
UInt32 | find_last_not_of (const CP_String &inString, UInt32 inIndex=npos) const |
Inserting | |
CP_String & | insert (UInt32 inIndex, CPUniChar inChar) |
CP_String & | insert (UInt32 inIndex, UInt32 inCount, CPUniChar inChar) |
CP_String & | insert (UInt32 inIndex, const char *inString, const CP_TextEncoder *inTextEncoder=NULL) |
CP_String & | insert (UInt32 inIndex, const char *inString, UInt32 inLength, const CP_TextEncoder *inTextEncoder=NULL) |
CP_String & | insert (UInt32 inIndex, const CPUniChar *inString) |
CP_String & | insert (UInt32 inIndex, const CPUniChar *inString, UInt32 inLength) |
CP_String & | insert (UInt32 inIndex, const CP_String &inString, UInt32 inStartIndex=0, UInt32 inLength=npos) |
Replacing | |
CP_String & | replace (UInt32 inIndex, UInt32 inCount, UInt32 inCharCount, CPUniChar inChar) |
CP_String & | replace (UInt32 inIndex, UInt32 inCount, const char *inString, const CP_TextEncoder *inTextEncoder=NULL) |
CP_String & | replace (UInt32 inIndex, UInt32 inCount, const char *inString, UInt32 InLength, const CP_TextEncoder *inTextEncoder=NULL) |
CP_String & | replace (UInt32 inIndex, UInt32 inCount, const CPUniChar *inString) |
CP_String & | replace (UInt32 inIndex, UInt32 inCount, const CPUniChar *inString, UInt32 inLength) |
CP_String & | replace (UInt32 inIndex, UInt32 inCount, const CP_String &inString, UInt32 inStartIndex=0, UInt32 inLength=npos) |
Size | |
UInt32 | length () const |
UInt32 | size () const |
void | resize (UInt32 inNewSize) |
void | resize (UInt32 inNewSize, CPUniChar inChar) |
UInt32 | capacity () const |
bool | Empty () const |
bool | empty () const |
void | clear () |
Iterators | |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
reverse_iterator | rbegin () |
const_reverse_iterator | rbegin () const |
reverse_iterator | rend () |
const_reverse_iterator | rend () const |
Misc | |
CP_String | substr (UInt32 inIndex=0, UInt32 inCount=npos) const |
UInt32 | copy (char *inOutBuffer, UInt32 inBufferSize, UInt32 inCount, UInt32 *outUsedBufferSize, UInt32 inIndex=0, const CP_TextEncoder *inTextEncoder=NULL, bool inLossy=false) const |
UInt32 | copy (CPUniChar *inOutBuffer, UInt32 inCount, UInt32 inIndex=0) const |
void | swap (CP_String &inString) |
void | reserve (UInt32 inCapacity) |
Conversion | |
CFStringRef | GetCFStringRef () const |
CFMutableStringRef | GetMutableCFStringRef () |
CP_ResourcePtr< CFStringRef > | GetCFStringRefPtr () const |
CP_ResourcePtr< CFMutableStringRef > | GetMutableCFStringRefPtr () |
Setters | |
void | Set (const unsigned char *inPString, CFStringEncoding inEncoding) |
Substring | |
void | Substring (CFRange inRange, CPUniChar *inOutBuffer) const |
Static Public Member Functions | |
static String * | FromXMLData (CP_InStream &inXMLDataStream) |
static Node * | FromXMLData (CP_InStream &inXMLDataStream, NodeType_t inExpectedNodeType=NodeType_Any) |
static Node * | CreateNodeForCFObject (CFTypeRef inObject) |
Creating strings using printf-style format + parameters | |
static CP_String | StringWithFormat (const char *inFormat,...) |
Create a string using printf-style format + parameters. | |
static CP_String | StringWithFormatAndArguments (const CP_String &inFormat, va_list args) |
Create a string using printf-style format + parameter list. | |
Creating strings using printf-style format + parameters | |
static CP_String | StringWithFormat (const char *inFormat,...) |
Create a string using printf-style format + parameters. | |
static CP_String | StringWithFormatAndArguments (const CP_String &inFormat, va_list args) |
Create a string using printf-style format + parameter list. | |
Static Public Attributes | |
static const CP_String | emptyString |
Protected Member Functions | |
void | AssertUniqueMutableCFStringRef () |
Protected Attributes | |
char * | fCStringDataPtr |
UInt32 | fCStringDataCapacity |
bool | fDirty |
CFStringRef | fImmutableString |
CFMutableStringRef | fMutableString |
CPUniChar * | fStringData |
UInt32 | fStringDataCapacity |
Friends | |
Concatenation | |
CP_String | operator+ (const CP_String &inLeftSide, const CP_String &inRightSide) |
CP_String | operator+ (const CPUniChar *inLeftSide, const CP_String &inRightSide) |
CP_String | operator+ (CPUniChar inLeftSide, const CP_String &inRightSide) |
CP_String | operator+ (const CP_String &inLeftSide, const CPUniChar *inRightSide) |
CP_String | operator+ (const CP_String &inLeftSide, CPUniChar inRightSide) |
Comparisons | |
bool | operator== (char inLeftSide, const CP_String &inRightSide) |
bool | operator== (const char *inLeftSide, const CP_String &inRightSide) |
bool | operator== (CPUniChar inLeftSide, const CP_String &inRightSide) |
bool | operator== (const CPUniChar *inLeftSide, const CP_String &inRightSide) |
bool | operator== (const CP_String &inLeftSide, CPUniChar inRightSide) |
bool | operator== (const CP_String &inLeftSide, const char *inRightSide) |
bool | operator== (const CP_String &inLeftSide, const CPUniChar *inRightSide) |
bool | operator== (const CP_String &inLeftSide, const CP_String &inRightSide) |
bool | operator!= (CPUniChar inLeftSide, const CP_String &inRightSide) |
bool | operator!= (const CPUniChar *inLeftSide, const CP_String &inRightSide) |
bool | operator!= (const CP_String &inLeftSide, CPUniChar inRightSide) |
bool | operator!= (const CP_String &inLeftSide, const char *inRightSide) |
bool | operator!= (const CP_String &inLeftSide, const CPUniChar *inRightSide) |
bool | operator!= (const CP_String &inLeftSide, const CP_String &inRightSide) |
bool | operator< (const CP_String &inLeftSide, const CP_String &inRightSide) |
bool | operator<= (const CP_String &inLeftSide, const CP_String &inRightSide) |
bool | operator> (const CP_String &inLeftSide, const CP_String &inRightSide) |
bool | operator>= (const CP_String &inLeftSide, const CP_String &inRightSide) |
Concatenation | |
CP_String | operator+ (const CP_String &inLeftSide, const CP_String &inRightSide) |
CP_String | operator+ (const CPUniChar *inLeftSide, const CP_String &inRightSide) |
CP_String | operator+ (CPUniChar inLeftSide, const CP_String &inRightSide) |
CP_String | operator+ (const CP_String &inLeftSide, const CPUniChar *inRightSide) |
CP_String | operator+ (const CP_String &inLeftSide, CPUniChar inRightSide) |
Comparisons | |
bool | operator== (char inLeftSide, const CP_String &inRightSide) |
bool | operator== (const char *inLeftSide, const CP_String &inRightSide) |
bool | operator== (CPUniChar inLeftSide, const CP_String &inRightSide) |
bool | operator== (const CPUniChar *inLeftSide, const CP_String &inRightSide) |
bool | operator== (const CP_String &inLeftSide, CPUniChar inRightSide) |
bool | operator== (const CP_String &inLeftSide, const char *inRightSide) |
bool | operator== (const CP_String &inLeftSide, const CPUniChar *inRightSide) |
bool | operator== (const CP_String &inLeftSide, const CP_String &inRightSide) |
bool | operator!= (CPUniChar inLeftSide, const CP_String &inRightSide) |
bool | operator!= (const CPUniChar *inLeftSide, const CP_String &inRightSide) |
bool | operator!= (const CP_String &inLeftSide, CPUniChar inRightSide) |
bool | operator!= (const CP_String &inLeftSide, const char *inRightSide) |
bool | operator!= (const CP_String &inLeftSide, const CPUniChar *inRightSide) |
bool | operator!= (const CP_String &inLeftSide, const CP_String &inRightSide) |
bool | operator< (const CP_String &inLeftSide, const CP_String &inRightSide) |
bool | operator<= (const CP_String &inLeftSide, const CP_String &inRightSide) |
bool | operator> (const CP_String &inLeftSide, const CP_String &inRightSide) |
bool | operator>= (const CP_String &inLeftSide, const CP_String &inRightSide) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Implements CP_PropertyList::Node. |
|
Implements CP_PropertyList::Node. |
|
|
|
Implements CP_PropertyList::Node. |
|
|
|
|
|
|
|
Add a reference to our object, returning the new reference count.
|
|
Remove a reference to our object, returning the new reference count. If the count is 0, then this object is also deleted, and 0 is returned.
|
|
Add the object to the topmost auto-release pool. This will ensure that the object is eventually released.
|
|
Returns the current ref count.
|
|
Creates a string from the given format and parameters. Same as CP_String::StringWithFormatAndArguments, except that the parameters are passed as C-style variable argument list.
|
|
Creates a string from the given format and parameter list.
|
|
Returns a pointer to the first character of the string and the end of the string is NULL terminated.
|
|
Returns a pointer to the first character of the string and the end of the string is NULL terminated. The characters returns are Unicode characters.
|
|
Returns a pointer to a buffer or characters that contains a UTF-8 encoded representation of the string.
|
|
Returns the Unicode character at the passed in 0 based index. Const version.
|
|
|
|
Returns the Unicode character at the passed in 0 (zero) based index. Const version.
|
|
|
|
Returns the first character in our string as a Unicode character. Const version.
|
|
|
|
Returns the last character in our string as a Unicode character. Const version.
|
|
|
|
|
|
* Adds the passed in inChar to the end of our string.
|
|
Adds the passed in inChar to the end of our string.
|
|
Adds the passed in inChar to the end of our string.
|
|
Adds the passed in c style (NULL terminated) string to the end of our string.
|
|
Adds the passed in Unicode (NULL terminated) string to the end of our string.
|
|
Adds the passed in CP_String string to the end of our string.
|
|
Appends the passed in inChar to the end of our string.
|
|
Appends the passed in inChar to the end of our string.
|
|
Appends the passed in inChar to the end of our string.
|
|
Appends the passed in inChar to the end of our string repeating inCount times.
|
|
Appends the passed in c style string to the end of our string.
|
|
Appends the passed in c style string to the end of our string starting at the beginning and copying inLength characters.
|
|
Appends the passed in NULL terminated string of Unicode characters to the end of our string.
|
|
Appends the passed in NULL terminated string of Unicode characters to the end of our string, copying the number of characters specified in inLength.
|
|
Appends characters from the passed in string starting at the character specified in inStartIndex and going for the number of characters specified in inLength.
|
|
Add the CPUniChar to the end of this string.
|
|
Replaces the current contents of the string with the passed in char.
|
|
Replaces the current contents of the string with the passed in Unicode char.
|
|
Replaces the current contents of the string with the passed in char repeating inCount number of times.
|
|
Replaces the current contents of the string with the passed in Unicode char repeating inCount number of times.
|
|
Replaces the current contents of the string with the passed in c style (NULL terminated) string.
|
|
Replaces the current contents of the string with the passed in c style (NULL terminated) string, using inLength characters from the string. If the string is shorter than the number of characters, then the string will only contain the actual characers and be shorter than the passed in length.
|
|
Replaces the current contents of the string with the passed in NULL terminated string of Unicode characters.
|
|
Replaces the current contents of the string with the passed in NULL terminated string of Unicode characters, copying inLength characters from the passed in string.
|
|
Replaces the current contents of the string with the passed in CP_String. We start from the source string in the passed in inStartIndex and copy inLength characters.
|
|
Compare the contents of the passed in string to the contents of this string.
|
|
Compare the contents of the passed in string to the contents of this string.
|
|
Compare the contents of the passed in string to the contents of this string.
|
|
Compare the contents of the passed in string to the contents of this string. This version uses only a portion of both strings to compare against as listed below in the parameters.
|
|
Compare the contents of the passed in string to the contents of this string. This version uses only a portion of both strings to compare against as listed below in the parameters.
|
|
Erase some of the characters in this string. The erasure begins at inIndex and goes for inCount number of characters.
|
|
Erases the last character in the string.
|
|
Return the index into this string of the passed in character starting at the passed in starting location.
|
|
Return the index into this string of the passed in c style (NULL terminated) string starting at the passed in starting location.
|
|
Return the index into this string of the passed in c style (NULL terminated) string starting at the passed in starting location and using inLength characters from the passed in string.
|
|
Return the index into this string of the passed in Unicode (NULL terminated) string starting at the passed in starting location.
|
|
Return the index into this string of the passed in Unicode (NULL terminated) string starting at the passed in starting location and using inLength characters from the passed in string.
|
|
Return the index into this string of the passed in CP_String string starting at the passed in starting location.
|
|
Return the index into this string of the passed in Unicode character, searching the string backwards and starting at inIndex.
|
|
Return the index into this string of the passed in c style (NULL terminated) string, searching the string backwards and starting at inIndex.
|
|
Return the index into this string of the passed in c style (NULL terminated) string, searching the string backwards and starting at inIndex and using inLength characters from the source string.
|
|
Return the index into this string of the passed in Unicode (NULL terminated) string, searching the string backwards and starting at inIndex.
|
|
Return the index into this string of the passed in Unicode (NULL terminated) string, searching the string backwards and starting at inIndex and using inLength characters from the source string.
|
|
Return the index into this string of the passed in CP_String string, searching the string backwards and starting at inIndex.
|
|
Return the index of the first occurrance of inChar in this string.
|
|
Return the index of the first occurrance of inSting in this string.
|
|
Return the index of the first occurrance of inSting in this string.
|
|
Return the index of the first occurrance of inSting in this string.
|
|
Return the index of the first occurrance of inSting in this string.
|
|
Return the index of the first occurrance of inSting in this string.
|
|
Return the index of the last occurrance of inChar in this string. The search is backwards in the string
|
|
Return the index of the last occurrance of inChar in this string. The search is backwards in the string
|
|
Return the index of the last occurrance of inString in this string. The search is backwards in the string
|
|
Return the index of the last occurrance of inString in this string. The search is backwards in the string
|
|
Return the index of the last occurrance of inString in this string. The search is backwards in the string
|
|
Return the index of the last occurrance of inString in this string. The search is backwards in the string
|
|
Return the index of the first occurrance of inChar that is not in this string.
|
|
Return the index of the first occurrance of inString that is not in this string.
|
|
Return the index of the first occurrance of inString that is not in this string.
|
|
Return the index of the first occurrance of inString that is not in this string.
|
|
Return the index of the first occurrance of inString that is not in this string.
|
|
Return the index of the first occurrance of inString that is not in this string.
|
|
Return the index of the last occurrance of inChar that is not in this string. The search is backwards in the string
|
|
Return the index of the last occurrance of inString that is not in this string. The search is backwards in the string
|
|
Return the index of the last occurrance of inString that is not in this string. The search is backwards in the string
|
|
Return the index of the last occurrance of inString that is not in this string. The search is backwards in the string
|
|
Return the index of the last occurrance of inString that is not in this string. The search is backwards in the string
|
|
Return the index of the last occurrance of inString that is not in this string. The search is backwards in the string
|
|
Insert the passed in Unicode character into this string starting at inIndex.
|
|
Insert the passed in Unicode character into this string starting at inIndex and repeating inCount number of times.
|
|
Insert the passed in c style (NULL terminated) string into this string starting at inIndex.
|
|
Insert the passed in c style (NULL terminated) string into this string starting at inIndex and using inLength number of characters from the source string.
|
|
Insert the passed in Unicode (NULL terminated) string into this string starting at inIndex.
|
|
Insert the passed in Unicode (NULL terminated) string into this string starting at inIndex and using inLength characters from the soruce string.
|
|
Insert a portion of the passed in CP_String string into this string starting at inIndex in this string. The portion of the string begin used begins at inStartIndex into the passed in string, and uses inLength characters from that string.
|
|
Replaces some of the characers in this string with the passed in Unicode character. The passed in character replaces the characters in this string starting at inIndex and going for inCount length in this string. The passed in character is repeated inCharCount times.
|
|
Replaces some of the characers in this string with the passed in c style (NULL terminated) string. The passed in character replaces the characters in this string starting at inIndex and going for inCount length in this string.
|
|
Replaces some of the characers in this string with the passed in c style (NULL terminated) string. The passed in character replaces the characters in this string starting at inIndex and going for inCount length in this string. Only the number of characters specified in inLength are used from the source string.
|
|
Replaces some of the characers in this string with the passed in Unicode (NULL terminated) string. The passed in character replaces the characters in this string starting at inIndex and going for inCount length in this string.
|
|
Replaces some of the characers in this string with the passed in Unicode (NULL terminated) string. The passed in character replaces the characters in this string starting at inIndex and going for inCount length in this string. Only the number of characters specified in inLength are used from the source string.
|
|
Replaces some of the characers in this string with the passed in CP_String string. The passed in character replaces the characters in this string starting at inIndex and going for inCount length in this string. Only the number of characters specified in inLength are used from the source string, and starting at inStartIndex in the source string.
|
|
Returns the number of characters in this string.
|
|
|
|
Resizes this string to hold the passed in number of characters. If the string is made shorter, then any extra characters are removed, and if the string is made longer, then extra space is added to the end of the existing string.
|
|
Resizes this string to hold the passed in number of characters. If the string is made shorter, then any extra characters are remved, and if the string is made longer, then extra space is added to the end of the existing string.
|
|
Return the capacity of this string. This is the amount of memory allocated at the moment, and might not be the same as the length/size returned.
|
|
Return true if this string contains 0 characters.
|
|
Return true if this string contains 0 characters.
|
|
Clears out or erases all of the current content of the string, and makes this into a zero length string.
|
|
Returns an iterator for accessing the contents of this string. The iterator points to the beginning of the string and is a forward_iterator.
|
|
Returns an iterator for accessing the contents of this string. The iterator points to the beginning of the string and is a forward_iterator.
|
|
Returns an iterator for accessing the contents of this string. The iterator points to the end of the string and is a forward_iterator.
|
|
Returns an iterator for accessing the contents of this string. The iterator points to the end of the string and is a forward_iterator.
|
|
Returns a reverse_iterator for accessing the contents of this string. The iterator points to the end of the string and is a reverse_iterator.
|
|
Returns a reverse_iterator for accessing the contents of this string. The iterator points to the end of the string and is a reverse_iterator.
|
|
Returns a reverse_iterator for accessing the contents of this string. The iterator points to the end of the string and is a reverse_iterator.
|
|
Returns a reverse_iterator for accessing the contents of this string. The iterator points to the end of the string and is a reverse_iterator.
|
|
Return a string containing a portion of this string.
|
|
Copy some characters from our string into the passed in char * inOutBuffer.
|
|
Copy some characters from our string into the passed in Unicode * inOutBuffer. Determines the effective length rlen of the string to copy as the smaller of inCount and size(). inOutBuffer shall designate an array of at least rlen elements. The function then copies rlen characters starting at index into the buffer provided.
|
|
Swap the contents of the passed in string with the contents of ourselves.
|
|
Reserve space to hold the passed in number of characters in our string.
|
|
Return the CFStringRef containing the string data.
|
|
Return the CFMutableStringRef containing the string data.
|
|
Return the CFStringRef containing the string data as a CP_ResourcePtr wrapped resource.
|
|
Return the CFMutableStringRef containing the string data as a CP_ResourcePtr wrapped resource.
|
|
|
|
Return a portion of this string in the passed in outBuffer.
|
|
Make sure our CoreFoundation string ref is mutable and has a retain count of 1 (i.e. we're the only one referencing it). If it isn't, create a mutable copy that we can work on (copy-on-write).
|
|
Combines the contents of the passed in strings to each other and returns a new string.
|
|
Combines the contents of the passed in strings to each other and returns a new string.
|
|
Combines the contents of the passed in strings to each other and returns a new string.
|
|
Combines the contents of the passed in strings to each other and returns a new string.
|
|
Combines the contents of the passed in strings to each other and returns a new string.
|
|
Compares the passed in inLeftSide character to the contents of the passed in CP_String.
|
|
Compares the passed in inLeftSide Unicode character string to the contents of the passed in CP_String.
|
|
Compares the passed in inLeftSide character to the contents of the passed in CP_String.
|
|
Compares the passed in inLeftSide Unicode character string to the contents of the passed in CP_String.
|
|
Compares the passed in inLeftSide CP_String to the Unicode character.
|
|
Compares the passed in inLeftSide CP_String to the Unicode character.
|
|
Compares the passed in inLeftSide CP_String to the Unicode character string.
|
|
Compares the passed in inLeftSide CP_String to the passed in CP_String.
|
|
Compares the passed in inLeftSide character to the contents of the passed in CP_String.
|
|
Compares the passed in inLeftSide Unicode character string to the contents of the passed in CP_String.
|
|
Compares the passed in inLeftSide CP_String to the Unicode character.
|
|
Compares the passed in inLeftSide CP_String to the Unicode character.
|
|
Compares the passed in inLeftSide CP_String to the Unicode character string.
|
|
Compares the passed in inLeftSide CP_String to the passed in CP_String.
|
|
Compares the passed in inLeftSide CP_String to the passed in CP_String.
|
|
Compares the passed in inLeftSide CP_String to the passed in CP_String.
|
|
Compares the passed in inLeftSide CP_String to the passed in CP_String.
|
|
Compares the passed in inLeftSide CP_String to the passed in CP_String.
|
|
|
|
Pointer to buffer returned for calls to c_str(). |
|
Amount of data our c style string member can hold (excluding terminating zero character). |
|
Flag to indicate if our return buffers need to be rebuilt. |
|
CoreFoundation CFString holding our string data. Only one of fImmutableString and fMutableString are != NULL at any time, depending on the mutability of the string. |
|
CoreFoundation CFString holding our string data. Only one of fImmutableString and fMutableString are != NULL at any time, depending on the mutability of the string. |
|
Pointer to buffer returned for calls to w_str(). |
|
Number of characters our fStringData member can hold (excluding terminating zero character). |