You are here

public static function PHPExcel_Shared_String::getThousandsSeparator in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/String.php \PHPExcel_Shared_String::getThousandsSeparator()

* Get the thousands separator. If it has not yet been set explicitly, try to obtain number * formatting information from locale. * *

Return value

string

3 calls to PHPExcel_Shared_String::getThousandsSeparator()
PHPExcel_Calculation_TextData::VALUE in vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/TextData.php
* VALUE * *
PHPExcel_Cell_AdvancedValueBinder::bindValue in vendor/phpoffice/phpexcel/Classes/PHPExcel/Cell/AdvancedValueBinder.php
Bind value to a cell
PHPExcel_Style_NumberFormat::toFormattedString in vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/NumberFormat.php
* Convert a value in a pre-defined format to a PHP string * *

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/String.php, line 719

Class

PHPExcel_Shared_String
PHPExcel_Shared_String

Code

public static function getThousandsSeparator() {
  if (!isset(self::$_thousandsSeparator)) {
    $localeconv = localeconv();
    self::$_thousandsSeparator = $localeconv['thousands_sep'] != '' ? $localeconv['thousands_sep'] : $localeconv['mon_thousands_sep'];
    if (self::$_thousandsSeparator == '') {

      // Default to .
      self::$_thousandsSeparator = ',';
    }
  }
  return self::$_thousandsSeparator;
}