53 Dynamic(
char*
const AData) noexcept;
81 Dynamic(
const unsigned long long AValue);
89 Dynamic(
const long long AValue);
98 Dynamic(
const char*
const AData,
const int ALength = -1);
162 virtual void Shrink(
const int AMaxBytes) noexcept;
165 int Length(
void)
const noexcept
override;
static Dynamic MakeNumberString(const unsigned long long AValue, const bool ANegative)
Allocates data for a string that represents AValue.
Container::Deque< Dynamic > Tokenize(const char ASeparator) const
Split the string into a Deque of other strings based on a seperator.
Dynamic & operator+=(const CStyle &ARHS)
Appends to a Dynamic string in place.
~Dynamic()
Frees allocated string.
Dynamic SubString(const int AIndex, const int ALength) const
Get a substring of the contained string.
virtual void Shrink(const int AMaxBytes) noexcept
Move the null terminator of the string so that the readable length is AMaxBytes.
static char * CopyCStyle(const CStyle &AData, int ALength)
Allocates data for and initializes a copy of a CStyle string.
Used for string of allocated variable length.
Dynamic & operator=(Dynamic &&AMove) noexcept
See Default Constructors and Destructor.
std::deque< AType, Interop::STLAllocator< AType >> Deque
std::deque algorithms using the CyberEngine's allocator
A basic char contained string.
static Dynamic FromData(char *const AData) noexcept
Construct a Dynamic string from a pre-allocated char array.
Dynamic() noexcept
Construct an empty Dynamic string.
static bool BuildAndPopulateBuffer(const int ASize, const ALambda APopulateData, Dynamic &ADynamic)
Allocate a char array that is ASize bytes in length. Call APopulateData with the char array as a para...
void DeallocateData(void)
Frees the data of the current string.
int Length(void) const noexceptoverride
Get the number of characters in the contained string. The definition of character may change in deriv...
Dynamic operator+(const CStyle &ARHS) const
Appends to a Dynamic string and returns a new one.