HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
hi::v1::plurality Struct Reference

#include <hikogui/unicode/unicode_plural.hpp>

Public Member Functions

constexpr plurality (plurality_value value, plurality_mask mask) noexcept
 
constexpr size_t index (size_t n) const noexcept
 Get an index to select between translations.
 

Data Fields

plurality_value value
 
plurality_mask mask
 

Detailed Description

Plurality of a number.

Member Function Documentation

◆ index()

constexpr size_t hi::v1::plurality::index ( size_t n) const
inlineconstexprnoexcept

Get an index to select between translations.

Parameters
nThe number of plural messages for this translation.
Returns
The index into the plural message table for this translation. If there are not enough messages, then the index to the last message is returned.

The documentation for this struct was generated from the following file: