String class. More...
Public Member Functions | |
PvString () | |
Default constructor. | |
PvString (const PvString &aValue) | |
Copy constructor. More... | |
PvString (const char *aValue) | |
Constructor. More... | |
PvString (const wchar_t *aValue) | |
Constructor. More... | |
virtual | ~PvString () |
Destructor. | |
const PvString & | operator= (const PvString &aValue) |
Assignment operator. More... | |
const PvString & | operator+= (const PvString &aValue) |
Concatenation operator. More... | |
bool | operator== (const char *aValue) const |
Test for equality with a multibyte string. More... | |
bool | operator!= (const char *aValue) const |
Test for inequality with a multibyte string. More... | |
bool | operator== (const wchar_t *aValue) const |
Test for equality with a unicode string. More... | |
bool | operator!= (const wchar_t *aValue) const |
Test for inequality with a unicode string. More... | |
bool | operator== (const PvString &aValue) const |
Test for equality with another PvString object. More... | |
bool | operator!= (const PvString &aValue) const |
Test for inequality with another PvString object. More... | |
operator const char * () const | |
Multibyte string cast operator. More... | |
operator const wchar_t * () const | |
Unicast string cast operator. More... | |
const char * | GetAscii () const |
Get the string in ASCII format. More... | |
const wchar_t * | GetUnicode () const |
Get the string in Unicode format. More... | |
unsigned int | GetLength () const |
Get the string's length. More... | |
String class.
PvString::PvString | ( | const PvString & | aValue | ) |
Copy constructor.
[in] | aValue | The string you want to initialize this PvString with. |
PvString::PvString | ( | const char * | aValue | ) |
Constructor.
[in] | aValue | The string you want to initialize this PvString with. |
PvString::PvString | ( | const wchar_t * | aValue | ) |
Constructor.
[in] | aValue | The string you want to initialize this PvString with. |
const char * PvString::GetAscii | ( | ) | const |
Get the string in ASCII format.
Do not store. Copy the string if needed out of the current context.
unsigned int PvString::GetLength | ( | ) | const |
Get the string's length.
const wchar_t * PvString::GetUnicode | ( | ) | const |
Get the string in Unicode format.
Do not store. Copy the string if needed out of the current context.
PvString::operator const char * | ( | ) | const |
Multibyte string cast operator.
Do not store. Copy the string if needed out of the current context.
PvString::operator const wchar_t * | ( | ) | const |
Unicast string cast operator.
Do not store. Copy the string if needed out of the current context.
bool PvString::operator!= | ( | const char * | aValue | ) | const |
Test for inequality with a multibyte string.
Case sensitive.
[in] | aValue | The string to compare against. |
bool PvString::operator!= | ( | const PvString & | aValue | ) | const |
Test for inequality with another PvString object.
Case sensitive.
[in] | aValue | The string to compare against. |
bool PvString::operator!= | ( | const wchar_t * | aValue | ) | const |
Test for inequality with a unicode string.
Case sensitive.
[in] | aValue | The string to compare against. |
Concatenation operator.
[in] | aValue | The string to be appended to the current string. |
bool PvString::operator== | ( | const char * | aValue | ) | const |
Test for equality with a multibyte string.
Case sensitive.
[in] | aValue | The The string to compare against. |
bool PvString::operator== | ( | const PvString & | aValue | ) | const |
Test for equality with another PvString object.
Case sensitive.
[in] | aValue | The string to compare against. |
bool PvString::operator== | ( | const wchar_t * | aValue | ) | const |
Test for equality with a unicode string.
Case sensitive.
[in] | aValue | The string to compare against. |
Copyright (c) 2002-2021 Pleora Technologies Inc.
www.pleora.com