You are here

private function PHPExcel_Reader_Excel5::_readByteStringShort in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5.php \PHPExcel_Reader_Excel5::_readByteStringShort()

* Read byte string (8-bit string length) * OpenOffice documentation: 2.5.2 * *

Parameters

string $subData: * @return array

5 calls to PHPExcel_Reader_Excel5::_readByteStringShort()
PHPExcel_Reader_Excel5::_readFont in vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5.php
* Read a FONT record
PHPExcel_Reader_Excel5::_readFooter in vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5.php
* Read FOOTER record
PHPExcel_Reader_Excel5::_readFormat in vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5.php
* FORMAT * * This record contains information about a number format. * All FORMAT records occur together in a sequential list. * * In BIFF2-BIFF4 other records referencing a FORMAT record * contain a zero-based index into this list. From…
PHPExcel_Reader_Excel5::_readHeader in vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5.php
* Read HEADER record
PHPExcel_Reader_Excel5::_readSheet in vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5.php
* SHEET * * This record is located in the Workbook Globals * Substream and represents a sheet inside the workbook. * One SHEET record is written for each sheet. It stores the * sheet name and a stream offset to the BOF record of the *…

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5.php, line 6529

Class

PHPExcel_Reader_Excel5
PHPExcel_Reader_Excel5

Code

private function _readByteStringShort($subData) {

  // offset: 0; size: 1; length of the string (character count)
  $ln = ord($subData[0]);

  // offset: 1: size: var; character array (8-bit characters)
  $value = $this
    ->_decodeCodepage(substr($subData, 1, $ln));
  return array(
    'value' => $value,
    'size' => 1 + $ln,
  );
}