PLCnext API Documentation
22.9.0.33
|
This class represents the counterpart to the data type 'IecString', 'IecWString'. It's the C++ data type which can be used by Arp components or by user programs. More...
#include <StaticString.hxx>
Public Types | |
using | String = Arp::BasicString< char8 > |
Public Member Functions | |
StaticString (const TChar *str=nullptr) | |
Constructs an StaticString instance. More... | |
StaticString (const StaticString &arg) | |
Copy constructor. More... | |
StaticString & | operator= (const StaticString< Capacity, TChar > &arg) |
Assignment operator. More... | |
template<uint16 M> | |
StaticString & | operator= (const StaticString< M, TChar > &arg) |
StaticString & | operator= (const String &arg) |
StaticString & | operator= (const TChar *arg) |
~StaticString (void)=default | |
Destructs this instance and frees all resources. More... | |
uint16 | GetLength (void) const |
bool | IsEmpty (void) const |
void | CopyTo (StaticString &other) const |
String | ToString (void) const |
void | Clear (void) |
template<uint16 M> | |
StaticString< N, TChar > & | operator= (const StaticString< M, TChar > &arg) |
![]() | |
StaticStringBase (uint16 capacityArg=80) | |
Constructs an StaticStringBase instance. More... | |
StaticStringBase (const StaticStringBase &arg)=default | |
Copy constructor. More... | |
StaticStringBase & | operator= (const StaticStringBase &arg)=default |
Assignment operator. More... | |
~StaticStringBase (void)=default | |
Destructs this instance and frees all resources. More... | |
uint16 | GetCapacity (void) const |
uint16 | GetLength (void) const |
char8 * | GetData (void) const |
char16 * | GetData16 (void) const |
size_t | GetSize (void) const |
size_t | GetSize (DataType dataType) const |
size_t | GetSize (size_t charSize) const |
void | CopyTo (StaticStringBase &other) const |
Additional Inherited Members | |
![]() | |
static size_t | GetMetaDataSize (void) |
![]() | |
static uint16 | AssignStaticString (char8 *pData, uint16 capacity, const String &arg) |
Assigns an Arp::String to a StaticString(char8) object More... | |
static uint16 | AssignStaticString (char16 *pData, uint16 capacity, const String &arg) |
Assigns an Arp::String to a StaticString(char16) object More... | |
static String | ConvertStaticString (const char8 *pData) |
Converts a StaticString(char8) object into an Arp::String More... | |
static String | ConvertStaticString (const char16 *pData) |
Converts a StaticString(char16) object into an Arp::String More... | |
![]() | |
uint16 | capacity |
uint16 | length |
This class represents the counterpart to the data type 'IecString', 'IecWString'. It's the C++ data type which can be used by Arp components or by user programs.
|
inline |
Constructs an StaticString instance.
|
inline |
Copy constructor.
|
default |
Destructs this instance and frees all resources.
|
inline |
Assignment operator.