![]() |
PUMA Library Reference Manual
|
#include <Puma/DString.h>
Global dictionary based string container.
Public Member Functions | |
| DString () | |
| Construct an empty string container. | |
| DString (const char *str) | |
| Construct a new string container for the given string. | |
| DString (const DString ©) | |
| Copy a string container. | |
| ~DString () | |
| Destroy the container. | |
| DString & | operator= (const DString ©) |
| Copy a string container. | |
| DString & | operator= (const char *str) |
| Assign a string to this string container. | |
| bool | operator== (const DString &str) const |
| Check if the given string equals this string. | |
| bool | operator!= (const DString &str) const |
| Check if the given string not equals this string. | |
| const char * | c_str () const |
| Get the contained string. | |
| unsigned int | length () const |
| Get the length of the string. | |
| bool | empty () const |
| Check if the string is empty. | |
| unsigned int | magic () const |
| Get the magic number (hash) of the string. | |
| operator const char * () const | |
| Conversion operator returning the contained string. | |
Static Public Member Functions | |
| static void | clearDict () |
| Clear the global dictionary. | |
|
inline |
Construct an empty string container.
Refers to the empty string.
|
inline |
Construct a new string container for the given string.
If the string is not null, then it is inserted into the dictionary.
| str | The string. |
|
inline |
Copy a string container.
| copy | The string container to copy. |
|
inline |
Destroy the container.
Does not delete the string.
|
inline |
Get the contained string.
|
inlinestatic |
Clear the global dictionary.
|
inline |
Check if the string is empty.
The string is empty if its length is zero.
|
inline |
Get the length of the string.
|
inline |
Get the magic number (hash) of the string.
|
inline |
Conversion operator returning the contained string.
|
inline |
Check if the given string not equals this string.
| str | The string to compare with. |
|
inline |
Assign a string to this string container.
| str | The string. |
Copy a string container.
| copy | The string container to copy. |
|
inline |
Check if the given string equals this string.
| str | The string to compare with. |