PoHeader::parseArithmetic

private function PoHeader::parseArithmetic

private PoHeader::parseArithmetic($string)

Parses and sanitizes an arithmetic formula into a plural element stack.

While parsing, we ensure, that the operators have the right precedence and associativity.

Parameters

string $string: A string containing the arithmetic formula.

Return value

A stack of values and operations to be evaluated.

File

core/lib/Drupal/Component/Gettext/PoHeader.php, line 276

Class

PoHeader 登录查看完整内容