You are here

private function PHPExcel_Reader_Excel5::_readBIFF5CellRangeAddressList 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::_readBIFF5CellRangeAddressList()

* Read BIFF5 cell range address list * section 2.5.15 * *

Parameters

string $subData: * @return array

1 call to PHPExcel_Reader_Excel5::_readBIFF5CellRangeAddressList()
PHPExcel_Reader_Excel5::_readSelection in vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5.php
* Read SELECTION record. There is one such record for each pane in the sheet.

File

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

Class

PHPExcel_Reader_Excel5
PHPExcel_Reader_Excel5

Code

private function _readBIFF5CellRangeAddressList($subData) {
  $cellRangeAddresses = array();

  // offset: 0; size: 2; number of the following cell range addresses
  $nm = self::_GetInt2d($subData, 0);
  $offset = 2;

  // offset: 2; size: 6 * $nm; list of $nm (fixed) cell range addresses
  for ($i = 0; $i < $nm; ++$i) {
    $cellRangeAddresses[] = $this
      ->_readBIFF5CellRangeAddressFixed(substr($subData, $offset, 6));
    $offset += 6;
  }
  return array(
    'size' => 2 + 6 * $nm,
    'cellRangeAddresses' => $cellRangeAddresses,
  );
}