You are here

public static function PHPExcel_Calculation::_localeFunc in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation.php \PHPExcel_Calculation::_localeFunc()
2 calls to PHPExcel_Calculation::_localeFunc()
PHPExcel_Calculation::_processTokenStack in vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation.php
PHPExcel_Calculation_Token_Stack::push in vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Token/Stack.php
* Push a new entry onto the stack * *

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation.php, line 2142

Class

PHPExcel_Calculation
PHPExcel_Calculation (Multiton)

Code

public static function _localeFunc($function) {
  if (self::$_localeLanguage !== 'en_us') {
    $functionName = trim($function, '(');
    if (isset(self::$_localeFunctions[$functionName])) {
      $brace = $functionName != $function;
      $function = self::$_localeFunctions[$functionName];
      if ($brace) {
        $function .= '(';
      }
    }
  }
  return $function;
}