![]() |
PST SDK
6.0.0.0-272350a
|
#include <PstString.h>
Collaboration diagram for PSTech::Utils::PstString:Public Member Functions | |
| PstString () | |
| PstString (const char *string) | |
| PstString (const PstString &string) | |
| PstString (PstString &&string) noexcept | |
| ~PstString () | |
| const char * | c_str () const |
| size_t | length () const |
| size_t | size () const |
| void | resize (size_t size) |
| int | compare (const PstString &string) const |
| PstString & | append (const PstString &string) |
| 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 |
| bool | operator< (const PstString &string) const |
| bool | operator<= (const PstString &string) const |
| bool | operator> (const PstString &string) const |
| bool | operator>= (const PstString &string) const |
| PstString & | operator+= (const PstString &right) |
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.
| PSTech::Utils::PstString::PstString | ( | ) |
Default constructor creating an empty PstString.
| PSTech::Utils::PstString::PstString | ( | const char * | string | ) |
Converting constructor converting c-string `string' to PstString.
| PSTech::Utils::PstString::PstString | ( | const PstString & | string | ) |
Copy constructor.
|
noexcept |
Move constructor.
| PSTech::Utils::PstString::~PstString | ( | ) |
Destructor
| const char* PSTech::Utils::PstString::c_str | ( | ) | const |
Returns a non-modifyable standard C character array version of the PstString.
| void PSTech::Utils::PstString::clear | ( | ) |
Destroy the contents of the PstString, leaving it empty.
| int PSTech::Utils::PstString::compare | ( | const PstString & | string | ) | const |
|
private |
| bool PSTech::Utils::PstString::empty | ( | ) | const |
Returns true if this PstString contains no characters.
| size_t PSTech::Utils::PstString::length | ( | ) | const |
Returns the number of characters in the PstString. Equivalent to PstString::size()
|
privatenoexcept |
| bool PSTech::Utils::PstString::operator!= | ( | const PstString & | string | ) | const |
Lexicographical comparison of two PstStrings.
Appends the string supplied by `right' to this PstString.
| bool PSTech::Utils::PstString::operator< | ( | const PstString & | string | ) | const |
Lexicographical comparison of two PstStrings.
| bool PSTech::Utils::PstString::operator<= | ( | const PstString & | string | ) | const |
Lexicographical comparison of two PstStrings.
Assign values to the PstString by copying.
Assign values to the PstString by moving.
| bool PSTech::Utils::PstString::operator== | ( | const PstString & | string | ) | const |
Lexicographical comparison of two PstStrings.
| bool PSTech::Utils::PstString::operator> | ( | const PstString & | string | ) | const |
Lexicographical comparison of two PstStrings.
| bool PSTech::Utils::PstString::operator>= | ( | const PstString & | string | ) | const |
Lexicographical comparison of two PstStrings.
| void PSTech::Utils::PstString::resize | ( | size_t | size | ) |
Changes the number of characters stored in the PstString to `size' characters.
| size_t PSTech::Utils::PstString::size | ( | ) | const |
Returns the number of characters in the PstString. Equivalent to PstString::length()
Concatenate the PstString supplied by `right' to the PstString supplied by `left'.
|
private |
|
private |