HikoGUI
Select Version:
⚠️ This documents the main development branch of HikoGUI. It might differ from release versions.
A low latency retained GUI
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
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: