On this page
  1. TextArg
  2. name
  3. numeric
  4. number
  5. text

rmp::TextArg

class #include <rmp/text.h> include/rmp/text.h:52
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.