@@ 7069-7087 (lines=19) @@ | ||
7066 | * @param string $subData |
|
7067 | * @return array |
|
7068 | */ |
|
7069 | private function readBIFF8CellRangeAddressList($subData) |
|
7070 | { |
|
7071 | $cellRangeAddresses = array(); |
|
7072 | ||
7073 | // offset: 0; size: 2; number of the following cell range addresses |
|
7074 | $nm = self::getInt2d($subData, 0); |
|
7075 | ||
7076 | $offset = 2; |
|
7077 | // offset: 2; size: 8 * $nm; list of $nm (fixed) cell range addresses |
|
7078 | for ($i = 0; $i < $nm; ++$i) { |
|
7079 | $cellRangeAddresses[] = $this->readBIFF8CellRangeAddressFixed(substr($subData, $offset, 8)); |
|
7080 | $offset += 8; |
|
7081 | } |
|
7082 | ||
7083 | return array( |
|
7084 | 'size' => 2 + 8 * $nm, |
|
7085 | 'cellRangeAddresses' => $cellRangeAddresses, |
|
7086 | ); |
|
7087 | } |
|
7088 | ||
7089 | ||
7090 | /** |
|
@@ 7097-7115 (lines=19) @@ | ||
7094 | * @param string $subData |
|
7095 | * @return array |
|
7096 | */ |
|
7097 | private function readBIFF5CellRangeAddressList($subData) |
|
7098 | { |
|
7099 | $cellRangeAddresses = array(); |
|
7100 | ||
7101 | // offset: 0; size: 2; number of the following cell range addresses |
|
7102 | $nm = self::getInt2d($subData, 0); |
|
7103 | ||
7104 | $offset = 2; |
|
7105 | // offset: 2; size: 6 * $nm; list of $nm (fixed) cell range addresses |
|
7106 | for ($i = 0; $i < $nm; ++$i) { |
|
7107 | $cellRangeAddresses[] = $this->readBIFF5CellRangeAddressFixed(substr($subData, $offset, 6)); |
|
7108 | $offset += 6; |
|
7109 | } |
|
7110 | ||
7111 | return array( |
|
7112 | 'size' => 2 + 6 * $nm, |
|
7113 | 'cellRangeAddresses' => $cellRangeAddresses, |
|
7114 | ); |
|
7115 | } |
|
7116 | ||
7117 | ||
7118 | /** |