private PoHeader::tokenizeFormula($formula)
Tokenize the formula.
Parameters
string $formula: A string containing the arithmetic formula.
Return value
array List of arithmetic tokens identified in the formula.
File
core/lib/Drupal/Component/Gettext/PoHeader.php, line 374
Class
PoHeader Gettext PO header handler.
Namespace
Drupal\Component\Gettext
Code
private function tokenizeFormula($formula) {
$formula = str_replace(" ", "", $formula);
$tokens = array();
for ($i = 0; $i <