#include <types.h>
◆ styled_string() [1/5]
| text_art::styled_string::styled_string |
( |
| ) |
|
|
explicitdefault |
◆ styled_string() [2/5]
| styled_string::styled_string |
( |
style_manager & | sm, |
|
|
const char * | str ) |
|
explicit |
class text_art::styled_string.
Construct a styled_string from STR.
STR is assumed to be UTF-8 encoded and 0-terminated.
Parse SGR formatting chars from being in-band (within in the sequence
of chars) to being out-of-band, as style elements.
We only support parsing the subset of SGR chars that can be emitted
by pretty-print.cc
References m_chars.
◆ styled_string() [3/5]
| styled_string::styled_string |
( |
cppchar_t | cppchar, |
|
|
bool | emoji = false ) |
|
explicit |
◆ styled_string() [4/5]
◆ styled_string() [5/5]
◆ append()
◆ begin()
| std::vector< styled_unichar >::const_iterator text_art::styled_string::begin |
( |
| ) |
const |
|
inline |
◆ calc_canvas_width()
| int styled_string::calc_canvas_width |
( |
| ) |
const |
◆ copy()
◆ end()
| std::vector< styled_unichar >::const_iterator text_art::styled_string::end |
( |
| ) |
const |
|
inline |
◆ from_fmt()
◆ from_fmt_va()
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ operator==()
◆ operator[]()
| styled_unichar text_art::styled_string::operator[] |
( |
size_t | idx | ) |
const |
|
inline |
◆ set_url()
| void styled_string::set_url |
( |
style_manager & | sm, |
|
|
const char * | url ) |
◆ size()
◆ m_chars
Referenced by append(), begin(), calc_canvas_width(), copy(), end(), operator==(), operator[](), set_url(), size(), styled_string(), and styled_string().
The documentation for this class was generated from the following files: