You are here

public static function PHPExcel_Shared_OLE::Asc2Ucs in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/OLE.php \PHPExcel_Shared_OLE::Asc2Ucs()

* Utility function to transform ASCII text to Unicode * * @access public * @static *

Parameters

string $ascii The ASCII string to transform: * @return string The string in Unicode

2 calls to PHPExcel_Shared_OLE::Asc2Ucs()
PHPExcel_Shared_OLE_PPS_Root::__construct in vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/OLE/PPS/Root.php
*
PHPExcel_Writer_Excel5::save in vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5.php
* Save PHPExcel to file * *

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/OLE.php, line 446

Class

PHPExcel_Shared_OLE
OLE package base class.

Code

public static function Asc2Ucs($ascii) {
  $rawname = '';
  for ($i = 0; $i < strlen($ascii); ++$i) {
    $rawname .= $ascii[$i] . "\0";
  }
  return $rawname;
}