mp_units::symbol_text::symbol_text

Constructors

Synopses

Declared in <mp-units/framework/symbol_text.h>

Constructs a symbol text from a single character

[[nodiscard]]
constexpr
explicit(false)
symbol_text(char ch);
» more...

Constructs a symbol text from a fixed string

[[nodiscard]]
constexpr
explicit(false)
symbol_text(fixed_string<N> const& txt);
» more...

Constructs a symbol text from a narrow string literal

[[nodiscard]]
consteval
explicit(false)
symbol_text(char const(& txt)[]);
» more...

Constructs a symbol text from separate UTF-8 and portable fixed strings

[[nodiscard]]
constexpr
symbol_text(
    fixed_u8string<N> const& utf8,
    fixed_string<M> const& portable);
» more...

Constructs a symbol text from separate UTF-8 and portable string literals

[[nodiscard]]
consteval
symbol_text(
    char8_t const(& u)[],
    char const(& a)[]);
» more...

Return Value

NOTE

The return value should not be discarded.

Parameters

NameDescription
chcharacter used for both the UTF-8 and the portable rendering
txtfixed string used for both the UTF-8 and the portable rendering
utf8fixed string defining the UTF-8 rendering
portablefixed string defining the portable rendering
uUTF-8 string literal defining the UTF-8 rendering
anarrow string literal defining the portable rendering