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);
Constructs a symbol text from a fixed string
[[nodiscard]]
constexpr
explicit(false)
symbol_text(fixed_string<N> const& txt);
Constructs a symbol text from a narrow string literal
[[nodiscard]]
consteval
explicit(false)
symbol_text(char const(& txt)[]);
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);
Constructs a symbol text from separate UTF‐8 and portable string literals
[[nodiscard]]
consteval
symbol_text(
char8_t const(& u)[],
char const(& a)[]);
Return Value
|
Note
|
The return value should not be discarded. |
Parameters
Name |
Description |
ch |
character used for both the UTF‐8 and the portable rendering |
txt |
fixed string used for both the UTF‐8 and the portable rendering |
utf8 |
fixed string defining the UTF‐8 rendering |
portable |
fixed string defining the portable rendering |
u |
UTF‐8 string literal defining the UTF‐8 rendering |
a |
narrow string literal defining the portable rendering |
Created with MrDocs