You are here

private static function PHPExcel_Shared_String::_buildControlCharacters 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::_buildControlCharacters()

* Build control characters array

1 call to PHPExcel_Shared_String::_buildControlCharacters()
PHPExcel_Shared_String::buildCharacterSets in vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/String.php

File

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

Class

PHPExcel_Shared_String
PHPExcel_Shared_String

Code

private static function _buildControlCharacters() {
  for ($i = 0; $i <= 31; ++$i) {
    if ($i != 9 && $i != 10 && $i != 13) {
      $find = '_x' . sprintf('%04s', strtoupper(dechex($i))) . '_';
      $replace = chr($i);
      self::$_controlCharacters[$find] = $replace;
    }
  }
}