You are here

public static function PHPExcel_Shared_String::ControlCharacterOOXML2PHP 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::ControlCharacterOOXML2PHP()

* Convert from OpenXML escaped control character to PHP control character * * Excel 2007 team: * ---------------- * That's correct, control characters are stored directly in the shared-strings table. * We do encode characters that cannot be represented in XML using the following escape sequence: * _xHHHH_ where H represents a hexadecimal character in the character's value... * So you could end up with something like _x0008_ in a string (either in a cell value (<v>) * element or in the shared string <t> element. * *

Parameters

string $value Value to unescape: * @return string

2 calls to PHPExcel_Shared_String::ControlCharacterOOXML2PHP()
PHPExcel_Reader_Excel2007::load in vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel2007.php
* Loads PHPExcel from file * *
PHPExcel_Reader_Excel2007::_parseRichText in vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel2007.php

File

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

Class

PHPExcel_Shared_String
PHPExcel_Shared_String

Code

public static function ControlCharacterOOXML2PHP($value = '') {
  return str_replace(array_keys(self::$_controlCharacters), array_values(self::$_controlCharacters), $value);
}