33 const video::SColor &color = video::SColor(255, 255, 255, 255));
35 const std::vector<video::SColor> &colors);
40 void addAtEnd(std::wstring_view s, video::SColor color);
65 const std::vector<video::SColor> &
getColors()
const;
85 return !(*
this == other);
Definition enriched_string.h:29
video::SColor getBackground() const
Definition enriched_string.h:100
EnrichedString getNextLine(size_t *pos) const
Definition enriched_string.cpp:164
void addAtEnd(std::wstring_view s, video::SColor color)
Definition enriched_string.cpp:63
void setBackground(video::SColor color)
Definition enriched_string.h:104
bool empty() const
Definition enriched_string.h:87
void addChar(const EnrichedString &source, size_t i)
Definition enriched_string.cpp:128
EnrichedString(std::wstring_view string, const std::vector< video::SColor > &colors)
void clear()
Definition enriched_string.cpp:46
bool operator!=(const EnrichedString &other) const
Definition enriched_string.h:83
const std::vector< video::SColor > & getColors() const
Definition enriched_string.cpp:201
bool operator==(const EnrichedString &other) const
Definition enriched_string.h:79
bool hasBackground() const
Definition enriched_string.h:96
const std::wstring & getString() const
Definition enriched_string.cpp:206
void operator+=(std::wstring_view other)
Definition enriched_string.h:56
std::wstring m_string
Definition enriched_string.h:111
const wchar_t * c_str() const
Definition enriched_string.h:61
video::SColor m_default_color
Definition enriched_string.h:114
std::vector< video::SColor > m_colors
Definition enriched_string.h:112
void operator+=(const EnrichedString &other)
Definition enriched_string.cpp:151
const video::SColor & getDefaultColor() const
Definition enriched_string.h:74
void addCharNoColor(wchar_t c)
Definition enriched_string.cpp:134
size_t size() const
Definition enriched_string.h:91
bool m_has_background
Definition enriched_string.h:113
EnrichedString operator+(const EnrichedString &other) const
Definition enriched_string.cpp:144
EnrichedString()
Definition enriched_string.cpp:27
EnrichedString(std::wstring_view s, const video::SColor &color=video::SColor(255, 255, 255, 255))
void updateDefaultColor()
Definition enriched_string.cpp:211
size_t m_default_length
Definition enriched_string.h:117
EnrichedString substr(size_t pos=0, size_t len=std::string::npos) const
Definition enriched_string.cpp:179
void setDefaultColor(video::SColor color)
Definition enriched_string.h:68
video::SColor m_background
Definition enriched_string.h:115
EnrichedString & operator=(std::wstring_view s)
Definition enriched_string.cpp:56
Definition clientmap.h:30