18 #ifndef LIBCWD_CLASS_DEBUG_STRING_H
19 #define LIBCWD_CLASS_DEBUG_STRING_H
21 #ifndef LIBCWD_CONFIG_H
38 struct debug_string_stack_element_ct;
50 friend struct debug_tsd_st;
55 size_t M_default_capacity;
56 static size_t const min_capacity_c = 64;
58 size_t calculate_capacity(
size_t);
59 void internal_assign(
char const* s,
size_t l);
60 void internal_append(
char const* s,
size_t l);
61 void internal_prepend(
char const* s,
size_t l);
65 void NS_internal_init(
char const* s,
size_t l);
71 friend struct debug_string_stack_element_ct;
78 char const*
c_str()
const;
79 void assign(
char const* str,
size_t len);
80 void append(
char const* str,
size_t len);
81 void prepend(
char const* str,
size_t len);
82 void assign(std::string
const& str);
83 void append(std::string
const& str);
84 void prepend(std::string
const& str);
88 struct debug_string_stack_element_ct {
90 debug_string_stack_element_ct* next;
The Debug Object class, this object represents one output device (ostream).
Definition: class_debug.h:77
A string class used for the debug output margin and marker.
Definition: class_debug_string.h:48
size_t size() const
The size of the string.
Definition: class_debug_string.inl:89
void reserve(size_t)
Reserve memory for the string in advance.
Definition: debug.cc:905
void prepend(char const *str, size_t len)
Prepend str with size len to the string.
Definition: class_debug_string.inl:76
void assign(char const *str, size_t len)
Assign str with size len to the string.
Definition: class_debug_string.inl:50
char const * c_str() const
A zero terminated char const pointer.
Definition: class_debug_string.inl:109
void append(char const *str, size_t len)
Append str with size len to the string.
Definition: class_debug_string.inl:63
size_t capacity() const
The capacity of the string.
Definition: class_debug_string.inl:99
namespace for libcwd.
Definition: debug.cc:87