6 #ifndef FW_CONST_EXTERNAL_STRING_HPP 7 #define FW_CONST_EXTERNAL_STRING_HPP 31 FW_ASSERT(bufferSize > 0, static_cast<FwAssertArgType>(bufferSize));
35 static_cast<FwAssertArgType>(bufferSize));
49 return this->m_bufferSize == 0 ? 0 : this->m_bufferSize - 1;
53 const char*
toChar()
const override {
return this->m_bufferPtr; }
64 const char* m_bufferPtr;
A string backed by an immutable string literal.
~ConstExternalString()
Destructor.
ConstStringBase::SizeType getCapacity() const override
Returns the buffer size.
ConstStringBase::SizeType length() const override
Get the length of the string.
A read-only abstract superclass for StringBase.
virtual SizeType length() const
Get the length of the string.
ConstExternalString()
Constructor (uninitialized buffer)
Declares F Prime string base class.
Implementation of malloc based allocator.
ConstExternalString(const char *bufferPtr, ConstStringBase::SizeType bufferSize)
Constructor (bufferPtr and bufferSize)
const char * toChar() const override
Gets the char buffer.