PLCnext API Documentation 25.0.2.69
|
Contains a static string with string lentgh up to N characters. The string shall be null terminated. More...
#include <RscString.hxx>
Public Member Functions | |
RscString (void) | |
Constructs an empty RscString. | |
RscString (const char *pChars) | |
Constructs an RscString instance and copies the null terminated c-string in internal buffer. More... | |
RscString (const char8u *pChars) | |
Constructs an RscString instance and copies the null terminated c-string in internal buffer. More... | |
RscString (const String &arg) | |
Constructor for type String . More... | |
RscString (const RscString &arg) | |
Default copy constructor. More... | |
RscString (RscString &&arg) noexcept | |
Default move constructor. More... | |
RscString & | operator= (const RscString &arg) |
Default copy-assignment operator. More... | |
RscString & | operator= (RscString &&arg) noexcept |
Default move-assignment operator. More... | |
~RscString (void) | |
Default destructor. | |
RscString & | operator= (const char *pChars) |
Assigns the char buffer to this instance. More... | |
RscString & | operator= (const char8u *pChars) |
Assigns the UTF8 char buffer to this instance. More... | |
RscString & | operator= (const String &str) |
Assigns the String to this instance. More... | |
![]() | |
operator String (void) const | |
Converts this object implicit to an instance of type String. More... | |
size_t | GetLength (void) const |
Gets the length of this string. More... | |
const char * | CStr (void) const |
Returns a const char pointer to the internal string buffer. More... | |
String | ToString (void) const |
Converts this object to an instance of type String. More... | |
void | Clear (void) |
Clears this instance resulting in an empty string. | |
void | Assign (const char *pChars) |
Assigns the char buffer to this instance. More... | |
void | Assign (const String &str) |
Assigns the String to this instance. More... | |
void | Read (RscReader &reader) |
Reads this string from RSC. More... | |
void | Write (RscWriter &writer) const |
Writes this string to RSC. More... | |
Static Public Member Functions | |
static constexpr size_t | GetMaxLength (void) |
Get the maximal string length of this instance excluding string terminator. More... | |
Protected Member Functions | |
RscString (RscType stringType) | |
Constructor for type < see cref="RscSecureString"/>. More... | |
![]() | |
RscStringBase (RscType stringType) | |
Constructs an empty RscStringBase instance. More... | |
RscStringBase (const RscStringBase &arg) | |
Default copy constructor. More... | |
RscStringBase (RscStringBase &&arg) noexcept | |
Default move constructor. More... | |
RscStringBase & | operator= (const RscStringBase &arg)=delete |
RscStringBase & | operator= (RscStringBase &&arg) noexcept=delete |
~RscStringBase (void) | |
Default destructor. | |
void | SetBufferInfo (char *pStringBuffer, size_t bufferSize, size_t strLength=0) |
Constructs an empty RscStringBase instance. More... | |
void | SetBufferInfo (char *pStringBuffer, size_t bufferSize, const char *pChars) |
Constructs a RscStringBase instance. More... | |
void | SetBufferInfo (char *pStringBuffer, size_t bufferSize, const String &str) |
Constructs a RscStringBase instance. More... | |
void | Assign (const char *pChars, size_t count) |
Copies the char buffer to this instance with a given length. More... | |
void | SetStringType (RscType value) |
Sets the string type of this instance. More... | |
RscType | GetStringType (void) const |
Gets the string type of this instance. More... | |
Contains a static string with string lentgh up to N characters. The string shall be null terminated.
N | The maximal length of the string, excluding NUL terminator. |
|
inline |
Constructs an RscString instance and copies the null terminated c-string in internal buffer.
pChars | Null terminated string to copy into internal buffer |
|
inline |
Constructs an RscString instance and copies the null terminated c-string in internal buffer.
pChars | Null terminated UTF8 string to copy into internal buffer. |
|
inline |
Constructor for type String
.
arg | The string to copy to this object. |
|
inline |
Default copy constructor.
arg | The argument to copy. |
|
inlinenoexcept |
Default move constructor.
arg | The argument to move. |
|
inlineexplicitprotected |
Constructor for type < see cref="RscSecureString"/>.
stringType | The type of the string, i.e. <see cref=RscString"/> or <see cref=RscSecureString"/>. |
|
inlinestaticconstexpr |
Get the maximal string length of this instance excluding string terminator.
|
inline |
Assigns the char buffer to this instance.
pChars | The char buffer to assign to this instance. |
|
inline |
Assigns the UTF8 char buffer to this instance.
pChars | The UTF8 char buffer to assign to this instance. |
|
inline |
Default copy-assignment operator.
arg | The argument to copy. |
|
inline |
Assigns the String to this instance.
str | The String to assign to this instance. |
|
inlinenoexcept |
Default move-assignment operator.
arg | The argument to move. |