#include <wx/string.h>
This helper class allows you to conveniently access the wxString internal buffer as a writable pointer and automatically determines its length.
This class is similar to wxStringBufferLength, but sets the length of the buffer automatically, by assuming that the string is NUL-terminated.
Public Member Functions | |
wxStringBuffer (wxString &str, size_t len) | |
Constructs a writable string buffer object associated with the given string and containing enough space for at least len characters. More... | |
~wxStringBuffer () | |
Restores the string passed to the constructor to the usable state. More... | |
wxStringCharType * | operator wxStringCharType * () |
Returns the writable pointer to a buffer of the size at least equal to the length specified in the constructor. More... | |
wxStringBuffer::wxStringBuffer | ( | wxString & | str, |
size_t | len | ||
) |
Constructs a writable string buffer object associated with the given string and containing enough space for at least len characters.
wxStringBuffer::~wxStringBuffer | ( | ) |
Restores the string passed to the constructor to the usable state.
wxStringCharType* wxStringBuffer::operator wxStringCharType * | ( | ) |
Returns the writable pointer to a buffer of the size at least equal to the length specified in the constructor.