rmp::TextArg
class TextArg
One placeholder's value: a name and a number or a text.
TextArg
template <class N> requires(std::is_arithmetic_v<N> && !std::is_same_v<N, bool> && !std::is_same_v<N, char>)
TextArg(std::string_view name, N value)
TextArg(std::string_view name, std::string_view value)
A number: it fills {name}, and chooses the plural form.
name
std::string_view name() const
The {name} it fills
numeric
bool numeric() const
A number, not a text
number
double number() const
The number; 0 for a text
text
std::string text() const
The value as it is written into the text.