6#ifndef LIBCWD_CLASS_DEBUG_STRING_INL
7#define LIBCWD_CLASS_DEBUG_STRING_INL
18inline DebugString::DebugString(
DebugString const& ds)
20 NS_internal_init(ds.str_, ds.size_);
21 if (capacity_ < ds.capacity_)
23 default_capacity_ = ds.default_capacity_;
31 internal_assign(str, len);
39 internal_append(str, len);
47 internal_prepend(str, len);
79 assign(str.data(), str.size());
87 append(str.data(), str.size());
95 prepend(str.data(), str.size());
98inline DebugStringStackElement::DebugStringStackElement(
DebugString const& ds) : debug_string(ds)
A string class used for the debug output margin and marker.
Definition DebugString.h:34
void append(char const *str, size_t len)
Append str with size len to the string.
Definition DebugString.inl.h:37
void assign(char const *str, size_t len)
Assign str with size len to the string.
Definition DebugString.inl.h:29
void prepend(char const *str, size_t len)
Prepend str with size len to the string.
Definition DebugString.inl.h:45
size_t size() const
The size of the string.
Definition DebugString.inl.h:53
size_t capacity() const
The capacity of the string.
Definition DebugString.inl.h:61
char const * c_str() const
A zero terminated char const pointer.
Definition DebugString.inl.h:69
void reserve(size_t)
Reserve memory for the string in advance.
Definition debug.cxx:777