# rmp::TextArg

> One placeholder's value: a name and a number or a text.

Source: https://omardev29.github.io/rmp-docs/reference/classes/rmp-TextArg.html

class `#include <rmp/text.h>` [include/rmp/text.h:52](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/text.h#L52-L78)

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)

function [include/rmp/text.h:55](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/text.h#L55-L60)

A number: it fills {name}, and chooses the plural form.

### `name`

std::string_view name() const

function [include/rmp/text.h:64](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/text.h#L64)

The {name} it fills

### `numeric`

bool numeric() const

function [include/rmp/text.h:65](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/text.h#L65)

A number, not a text

### `number`

double number() const

function [include/rmp/text.h:66](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/text.h#L66)

The number; 0 for a text

### `text`

std::string text() const

function [include/rmp/text.h:68](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/text.h#L68)

The value as it is written into the text.
