|
|
| QCString () |
| | creates an empty string
|
| |
|
| ~QCString () |
| | destroys the string
|
| |
| | QCString (const QCString &s) |
| | makes a copy of a string. More...
|
| |
| | QCString (int size) |
| | creates a string with room for size characters More...
|
| |
| | QCString (const char *str) |
| | creates a string from a plain C string. More...
|
| |
| | QCString (const char *str, uint maxlen) |
| | creates a string from str and copies over the first maxlen characters. More...
|
| |
| QCString & | operator= (const QCString &s) |
| | replaces the contents by that of string s. More...
|
| |
| QCString & | operator= (const char *str) |
| | replaces the contents by that of C string str. More...
|
| |
| bool | isNull () const |
| | Returns TRUE iff the string is empty. More...
|
| |
|
bool | isEmpty () const |
| | Returns TRUE iff the string is empty.
|
| |
| uint | length () const |
| | Returns the length of the string, excluding the 0-terminator. More...
|
| |
| uint | size () const |
| | Returns the length of the string, excluding the 0-terminator. More...
|
| |
|
const char * | data () const |
| | Returns a pointer to the contents of the string in the form of a 0-terminated C string.
|
| |
| char * | rawData () const |
| | Returns a writable pointer to the data. More...
|
| |
| bool | resize (uint newlen) |
| | Resizes the string to hold newlen characters (this value should include the 0-terminator). More...
|
| |
| bool | truncate (uint pos) |
| | Truncates the string at position pos. More...
|
| |
| bool | fill (char c, int len=-1) |
| | Fills a string with a predefined character. More...
|
| |
| QCString | copy () const |
| | Returns a deep copy of the string. More...
|
| |
|
QCString & | sprintf (const char *format,...) |
| |
|
int | find (char c, int index=0, bool cs=TRUE) const |
| |
|
int | find (const char *str, int index=0, bool cs=TRUE) const |
| |
|
int | find (const QCString &str, int index=0, bool cs=TRUE) const |
| |
|
int | find (const QRegExp &rx, int index=0) const |
| |
|
int | findRev (char c, int index=-1, bool cs=TRUE) const |
| |
|
int | findRev (const char *str, int index=-1, bool cs=TRUE) const |
| |
|
int | findRev (const QRegExp &rx, int index=-1) const |
| |
|
int | contains (char c, bool cs=TRUE) const |
| |
|
int | contains (const char *str, bool cs=TRUE) const |
| |
|
int | contains (const QRegExp &rx) const |
| |
|
bool | stripPrefix (const char *prefix) |
| |
|
QCString | left (uint len) const |
| |
|
QCString | right (uint len) const |
| |
|
QCString | mid (uint index, uint len=0xffffffff) const |
| |
|
QCString | lower () const |
| |
|
QCString | upper () const |
| |
|
QCString | stripWhiteSpace () const |
| |
|
QCString | simplifyWhiteSpace () const |
| |
|
QCString & | assign (const char *str) |
| |
|
QCString & | insert (uint index, const char *s) |
| |
|
QCString & | insert (uint index, char c) |
| |
|
QCString & | append (const char *s) |
| |
|
QCString & | prepend (const char *s) |
| |
|
QCString & | remove (uint index, uint len) |
| |
|
QCString & | replace (uint index, uint len, const char *s) |
| |
|
QCString & | replace (const QRegExp &rx, const char *str) |
| |
|
short | toShort (bool *ok=0) const |
| |
|
ushort | toUShort (bool *ok=0) const |
| |
|
int | toInt (bool *ok=0) const |
| |
|
uint | toUInt (bool *ok=0) const |
| |
|
long | toLong (bool *ok=0) const |
| |
|
ulong | toULong (bool *ok=0) const |
| |
|
uint64 | toUInt64 (bool *ok=0) const |
| |
|
QCString & | setNum (short n) |
| |
|
QCString & | setNum (ushort n) |
| |
|
QCString & | setNum (int n) |
| |
|
QCString & | setNum (uint n) |
| |
|
QCString & | setNum (long n) |
| |
|
QCString & | setNum (ulong n) |
| |
|
| operator const char * () const |
| | Converts the string to a plain C string.
|
| |
| QCString & | operator+= (const char *str) |
| | Appends string str to this string and returns a reference to the result. More...
|
| |
| QCString & | operator+= (char c) |
| | Appends character c to this string and returns a reference to the result. More...
|
| |
| char & | at (uint i) const |
| | Returns a reference to the character at index i. More...
|
| |
| char & | operator[] (int i) const |
| | Indexing operator. More...
|
| |
This is an alternative implementation of QCString.
It provides basically the same functions but uses reference counting and copy on write.