#include <PstString.h>
Public Member Functions | |
| PstString () | |
| PstString (const PstString &string) | |
| PstString (PstString &&string) noexcept | |
| ~PstString () | |
| const char * | c_str () const |
| size_t | length () const |
| size_t | size () const |
| void | clear () |
| bool | empty () const |
| PstString & | operator= (const PstString &string) |
| PstString & | operator= (PstString &&string) noexcept |
| bool | operator== (const PstString &string) const |
| bool | operator!= (const PstString &string) const |
Private Member Functions | |
| void | copy_internal (const PstString &string) |
| void | move_internal (PstString &&string) noexcept |
Private Attributes | |
| char * | m_string |
| size_t | m_size |
Friends | |
| PstString | operator+ (PstString left, const PstString &right) |
Basic string class, cloning std::string. This class can safely be passed across the DLL boundary.
| PstString | ( | ) |
Default constructor creating an empty PstString.
| PstString | ( | const PstString & | string | ) |
Converting constructor converting c-string `string' to PstString. */ PstString(const char* string);
/** Copy constructor.
|
noexcept |
Move constructor.
| ~PstString | ( | ) |
Destructor
| const char * c_str | ( | ) | const |
Returns a non-modifyable standard C character array version of the PstString.
| void clear | ( | ) |
Changes the number of characters stored in the PstString to `size' characters. */ void resize(size_t size);
/** Compares this PstString to `string'.
/** Concatenates the PstString supplied by `string' to this PstString.
/** Destroy the contents of the PstString, leaving it empty.
|
private |
| bool empty | ( | ) | const |
Returns true if this PstString contains no characters.
| size_t length | ( | ) | const |
Returns the number of characters in the PstString. Equivalent to PstString::size()
|
privatenoexcept |
| bool operator!= | ( | const PstString & | string | ) | const |
Lexicographical comparison of two PstStrings.
| bool operator== | ( | const PstString & | string | ) | const |
Lexicographical comparison of two PstStrings.
| size_t size | ( | ) | const |
Returns the number of characters in the PstString. Equivalent to PstString::length()
Lexicographical comparison of two PstStrings.
/** Lexicographical comparison of two PstStrings.
/** Lexicographical comparison of two PstStrings.
/** Lexicographical comparison of two PstStrings.
/** Appends the string supplied by `right' to this PstString.
/** Concatenate the PstString supplied by right' to the PstString supplied by left'.
|
private |
|
private |