@@ 6102-6120 (lines=19) @@ | ||
6099 | * @param string $subData |
|
6100 | * @return array |
|
6101 | */ |
|
6102 | private function _readBIFF8CellRangeAddressList($subData) |
|
6103 | { |
|
6104 | $cellRangeAddresses = array(); |
|
6105 | ||
6106 | // offset: 0; size: 2; number of the following cell range addresses |
|
6107 | $nm = self::_GetInt2d($subData, 0); |
|
6108 | ||
6109 | $offset = 2; |
|
6110 | // offset: 2; size: 8 * $nm; list of $nm (fixed) cell range addresses |
|
6111 | for ($i = 0; $i < $nm; ++$i) { |
|
6112 | $cellRangeAddresses[] = $this->_readBIFF8CellRangeAddressFixed(substr($subData, $offset, 8)); |
|
6113 | $offset += 8; |
|
6114 | } |
|
6115 | ||
6116 | return array( |
|
6117 | 'size' => 2 + 8 * $nm, |
|
6118 | 'cellRangeAddresses' => $cellRangeAddresses, |
|
6119 | ); |
|
6120 | } |
|
6121 | ||
6122 | ||
6123 | /** |
|
@@ 6130-6148 (lines=19) @@ | ||
6127 | * @param string $subData |
|
6128 | * @return array |
|
6129 | */ |
|
6130 | private function _readBIFF5CellRangeAddressList($subData) |
|
6131 | { |
|
6132 | $cellRangeAddresses = array(); |
|
6133 | ||
6134 | // offset: 0; size: 2; number of the following cell range addresses |
|
6135 | $nm = self::_GetInt2d($subData, 0); |
|
6136 | ||
6137 | $offset = 2; |
|
6138 | // offset: 2; size: 6 * $nm; list of $nm (fixed) cell range addresses |
|
6139 | for ($i = 0; $i < $nm; ++$i) { |
|
6140 | $cellRangeAddresses[] = $this->_readBIFF5CellRangeAddressFixed(substr($subData, $offset, 6)); |
|
6141 | $offset += 6; |
|
6142 | } |
|
6143 | ||
6144 | return array( |
|
6145 | 'size' => 2 + 6 * $nm, |
|
6146 | 'cellRangeAddresses' => $cellRangeAddresses, |
|
6147 | ); |
|
6148 | } |
|
6149 | ||
6150 | ||
6151 | /** |