RAVENNAKIT
Loading...
Searching...
No Matches
rav::rank Namespace Reference

Functions

const char * to_ordinal (const uint8_t rank)
const char * to_ordinal_latin (const uint8_t rank, const bool short_form=false)

Variables

static constexpr uint8_t primary = 0
static constexpr uint8_t secondary = 1

Function Documentation

◆ to_ordinal()

const char * rav::rank::to_ordinal ( const uint8_t rank)
inlinenodiscard
Returns
The rank value as an ordinal string (1st, 2nd, etc.) up until 10th.

Definition at line 37 of file rank.hpp.

◆ to_ordinal_latin()

const char * rav::rank::to_ordinal_latin ( const uint8_t rank,
const bool short_form = false )
inlinenodiscard
Returns
The rank value as an ordinal string (primary, secondary, etc.) up until tenth (10th).

Definition at line 67 of file rank.hpp.

Variable Documentation

◆ primary

uint8_t rav::rank::primary = 0
staticconstexpr

Definition at line 31 of file rank.hpp.

◆ secondary

uint8_t rav::rank::secondary = 1
staticconstexpr

Definition at line 32 of file rank.hpp.