ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
A helper class to convert a CLDR formula to a gettext formula. More...
Static Public Member Functions | |
static | convertFormula ($cldrFormula) |
Converts a formula from the CLDR representation to the gettext representation. More... | |
Static Private Member Functions | |
static | convertAtom ($cldrAtom) |
Converts an atomic part of the CLDR formula to its gettext representation. More... | |
static | expandAtom ($atom) |
Expands an atom containing a range (for instance: 'n == 1,3..5'). More... | |
A helper class to convert a CLDR formula to a gettext formula.
Definition at line 9 of file FormulaConverter.php.
|
staticprivate |
Converts an atomic part of the CLDR formula to its gettext representation.
string | $cldrAtom | The CLDR formula atom to convert. |
Exception |
Definition at line 70 of file FormulaConverter.php.
References $m, and Gettext\Languages\FormulaConverter\expandAtom().
Referenced by Gettext\Languages\FormulaConverter\convertFormula().
|
static |
Converts a formula from the CLDR representation to the gettext representation.
string | $cldrFormula | The CLDR formula to convert. |
Exception |
Definition at line 17 of file FormulaConverter.php.
References Gettext\Languages\FormulaConverter\convertAtom().
Referenced by Gettext\Languages\Category\__construct().
|
staticprivate |
Expands an atom containing a range (for instance: 'n == 1,3..5').
string | $atom |
Exception |
Definition at line 102 of file FormulaConverter.php.
Referenced by Gettext\Languages\FormulaConverter\convertAtom().