#include <simple_string_storage.hpp>
template<typename E, class TAllocator>
class std::simple_wstring_storage< E, TAllocator >
◆ allocator_type
template<typename E , class TAllocator >
◆ const_iterator
template<typename E , class TAllocator >
◆ size_type
template<typename E , class TAllocator >
◆ value_type
template<typename E , class TAllocator >
◆ simple_wstring_storage() [1/4]
template<typename E , class TAllocator >
228 : m_length(0), m_allocator(allocator)
230 m_data = construct_string(0, m_capacity);
◆ simple_wstring_storage() [2/4]
template<typename E , class TAllocator >
233 : m_allocator(allocator)
235 const int len = wcslen(
str);
236 m_data = construct_string(len, m_capacity);
static void wMemCpy(void *to, const void *from, size_t bytes)
Definition: PLATFORM.cpp:52
E value_type
Definition: simple_string_storage.hpp:221
std::string str(T begin, T end)
Definition: utils.hpp:39
◆ simple_wstring_storage() [3/4]
template<typename E , class TAllocator >
242 : m_allocator(allocator)
244 m_data = construct_string(len, m_capacity);
static void wMemCpy(void *to, const void *from, size_t bytes)
Definition: PLATFORM.cpp:52
E value_type
Definition: simple_string_storage.hpp:221
std::string str(T begin, T end)
Definition: utils.hpp:39
◆ simple_wstring_storage() [4/4]
template<typename E , class TAllocator >
250 : m_data(0), m_capacity(0), m_length(0), m_allocator(allocator)
252 assign(rhs.c_str(), rhs.length());
void assign(const value_type *str, size_type len)
Definition: simple_string_storage.hpp:268
◆ ~simple_wstring_storage()
template<typename E , class TAllocator >
◆ append()
template<typename E , class TAllocator >
285 if (m_capacity <= newLen + 1)
288 value_type* newData = construct_string(newLen, newCapacity);
292 m_capacity = newCapacity;
static void wMemCpy(void *to, const void *from, size_t bytes)
Definition: PLATFORM.cpp:52
E value_type
Definition: simple_string_storage.hpp:221
size_type length() const
Definition: simple_string_storage.hpp:305
bool invariant() const
Definition: simple_string_storage.hpp:325
int size_type
Definition: simple_string_storage.hpp:222
std::string str(T begin, T end)
Definition: utils.hpp:39
◆ assign()
template<typename E , class TAllocator >
271 if (m_capacity <= len + 1)
274 m_data = construct_string(len, m_capacity);
static void wMemCpy(void *to, const void *from, size_t bytes)
Definition: PLATFORM.cpp:52
E value_type
Definition: simple_string_storage.hpp:221
std::string str(T begin, T end)
Definition: utils.hpp:39
◆ c_str()
template<typename E , class TAllocator >
◆ capacity()
template<typename E , class TAllocator >
310 {
return m_capacity; }
◆ clear()
template<typename E , class TAllocator >
315 m_data = construct_string(0, m_capacity);
◆ get_allocator()
template<typename E , class TAllocator >
319 {
return m_allocator; }
◆ get_data()
template<typename E , class TAllocator >
◆ invariant()
template<typename E , class TAllocator >
328 assert(m_length <= m_capacity);
330 assert(m_data[
length()] == 0);
size_type length() const
Definition: simple_string_storage.hpp:305
◆ length()
template<typename E , class TAllocator >
◆ make_unique()
template<typename E , class TAllocator >
◆ operator=()
template<typename E , class TAllocator >
261 if (m_data != rhs.c_str())
263 assign(rhs.c_str(), rhs.length());
void assign(const value_type *str, size_type len)
Definition: simple_string_storage.hpp:268
◆ kGranularity
template<typename E , class TAllocator >
Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei: