#include <gettext_plural_form.h>
Public Types | |
| using | NumT = unsigned long |
| using | Function = std::function<NumT(NumT)> |
| using | Ptr = std::shared_ptr<GettextPluralForm> |
Public Member Functions | |
| GettextPluralForm (std::wstring_view str) | |
| size_t | size () const |
| NumT | operator() (const NumT n) const |
| operator bool () const | |
Static Public Member Functions | |
| static Ptr | parseHeaderLine (std::wstring_view str) |
Private Attributes | |
| size_t | nplurals = 0 |
| Function | func = nullptr |
| using GettextPluralForm::Function = std::function<NumT(NumT)> |
| using GettextPluralForm::NumT = unsigned long |
| using GettextPluralForm::Ptr = std::shared_ptr<GettextPluralForm> |
| GettextPluralForm::GettextPluralForm | ( | std::wstring_view | str | ) |
References func, nplurals, parse(), size(), str_ends_with(), and str_starts_with().
Referenced by parseHeaderLine().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References nplurals.
|
inlinestatic |
References GettextPluralForm().
Referenced by Translations::loadMoTranslation(), and Translations::loadPoTranslation().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
private |
Referenced by GettextPluralForm(), and operator()().
|
private |
Referenced by GettextPluralForm(), operator bool(), and size().