8#ifndef HPP_ALIB_STRINGS_LOCALSTRING
9#define HPP_ALIB_STRINGS_LOCALSTRING 1
13namespace alib {
namespace strings {
65template <
typename TChar,
integer TCapacity,
typename TAllocator= lang::HeapAllocator>
132 if ( !move.HasInternalBuffer() )
151#if ALIB_DEBUG_STRINGS
153 move.buffer =
nullptr;
211#if ALIB_DEBUG_STRINGS
213 move.buffer =
nullptr;
233 template <
class TAppendable>
257template <
typename TChar,
integer TCapacity,
typename TAllocator>
278 template <
typename TChar,
integer TCapacity,
typename TAllocator>
279 using TLocalStringNoWarning = TLocalString<TChar, TCapacity, TAllocator>;
bool dbgWarnWhenExternalBufferIsReplaced
bool HasInternalBuffer() const
TAString & Append(const TCharSrc *src, integer srcLength)
void SetNull()
Invokes SetBuffer(0).
integer debugLastAllocRequest
TLocalString & operator=(const TLocalString ©)
TLocalString(const TLocalString ©)
TAString< TChar, TAllocator > base
The base AString-type.
constexpr TLocalString(TAllocator &pAllocator)
TLocalString(TLocalString &&move) noexcept
TLocalString(const TAppendable &src)
TChar localBuffer[TCapacity]
constexpr bool IsNull() const
constexpr integer Length() const
constexpr const TChar * Buffer() const
constexpr TLocalStringNoWarning()
Default constructor.
TLocalStringNoWarning(const String &src)