|
| QCString (const QCString &s)=default |
|
QCString & | operator= (const QCString &s)=default |
|
| QCString (QCString &&s)=default |
|
QCString & | operator= (QCString &&s)=default |
|
| QCString (const std::string &s) |
|
| QCString (std::string &&s) |
|
| QCString (const JavaCCString &s) |
| For converting a JavaCC string.
|
|
QCString & | operator= (const JavaCCString &s) |
|
| QCString (size_t 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, size_t maxlen) |
| creates a string from str and copies over the first maxlen characters. More...
|
|
QCString & | operator= (const char *str) |
| replaces the contents by that of C string str. More...
|
|
QCString & | operator= (const std::string &s) |
|
bool | isNull () const |
| Returns TRUE iff the string is empty. More...
|
|
bool | isEmpty () const |
| Returns TRUE iff the string is empty.
|
|
uint32_t | length () const |
| Returns the length of the string, not counting the 0-terminator. More...
|
|
uint32_t | size () const |
| Returns the length of the string, not counting 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 () |
| Returns a writable pointer to the data.
|
|
bool | resize (size_t newlen) |
| Resizes the string to hold newlen characters (this value should also count the 0-terminator). More...
|
|
bool | truncate (size_t pos) |
| Truncates the string at position pos. More...
|
|
void | reserve (size_t size) |
| Reserve space for size bytes without changing the string contents.
|
|
bool | fill (char c, int len=-1) |
| Fills a string with a predefined character. 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 | findRev (char c, int index=-1, bool cs=TRUE) const |
|
int | findRev (const char *str, int index=-1, bool cs=TRUE) const |
|
int | contains (char c, bool cs=TRUE) const |
|
int | contains (const char *str, bool cs=TRUE) const |
|
bool | stripPrefix (const QCString &prefix) |
|
bool | stripPrefix (const char *prefix) |
|
QCString | left (size_t len) const |
|
QCString | right (size_t len) const |
|
QCString | mid (size_t index, size_t len=static_cast< size_t >(-1)) const |
|
QCString | lower () const |
|
QCString | upper () const |
|
QCString | stripWhiteSpace () const |
| returns a copy of this string with leading and trailing whitespace removed
|
|
QCString | quoted () const |
|
QCString | removeWhiteSpace () const |
| returns a copy of this string with all whitespace removed
|
|
QCString | simplifyWhiteSpace () const |
| return a copy of this string with leading and trailing whitespace removed and multiple whitespace characters replaced by a single space
|
|
QCString | repeat (unsigned int n) const |
|
QCString & | insert (size_t index, const QCString &s) |
|
QCString & | insert (size_t index, const char *s) |
|
QCString & | insert (size_t index, char c) |
|
QCString & | append (char c) |
|
QCString & | append (const char *s) |
|
QCString & | append (const QCString &s) |
|
QCString & | append (const std::string &s) |
|
QCString & | prepend (const char *s) |
|
QCString & | prepend (const QCString &s) |
|
QCString & | prepend (const std::string &s) |
|
QCString & | remove (size_t index, size_t len) |
|
QCString & | replace (size_t index, size_t len, const char *s) |
|
short | toShort (bool *ok=0, int base=10) const |
|
uint16_t | toUShort (bool *ok=0, int base=10) const |
|
int | toInt (bool *ok=0, int base=10) const |
|
uint32_t | toUInt (bool *ok=0, int base=10) const |
|
long | toLong (bool *ok=0, int base=10) const |
|
unsigned long | toULong (bool *ok=0, int base=10) const |
|
uint64_t | toUInt64 (bool *ok=0, int base=10) const |
|
QCString & | setNum (short n) |
|
QCString & | setNum (uint16_t n) |
|
QCString & | setNum (int n) |
|
QCString & | setNum (uint32_t n) |
|
QCString & | setNum (long n) |
|
QCString & | setNum (long long n) |
|
QCString & | setNum (unsigned long long n) |
|
QCString & | setNum (unsigned long n) |
|
bool | startsWith (const char *s) const |
|
bool | startsWith (const QCString &s) const |
|
bool | endsWith (const char *s) const |
|
bool | endsWith (const QCString &s) const |
|
const std::string & | str () const |
|
QCString & | operator+= (const QCString &s) |
|
QCString & | operator+= (const std::string &s) |
|
QCString & | operator+= (const char *s) |
| 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 (size_t i) |
| Returns a reference to the character at index i. More...
|
|
const char & | at (size_t i) const |
|
char & | operator[] (int i) |
| Indexing operator. More...
|
|
const char & | operator[] (int i) const |
|
This is an alternative implementation of QCString.
It provides basically the same functions but uses std::string as the underlying string type