@@ 2598-2604 (lines=7) @@ | ||
2595 | $sheetType = ord($recordData{5}); |
|
2596 | ||
2597 | // offset: 6; size: var; sheet name |
|
2598 | if ($this->version == self::XLS_BIFF8) { |
|
2599 | $string = self::readUnicodeStringShort(substr($recordData, 6)); |
|
2600 | $rec_name = $string['value']; |
|
2601 | } elseif ($this->version == self::XLS_BIFF7) { |
|
2602 | $string = $this->readByteStringShort(substr($recordData, 6)); |
|
2603 | $rec_name = $string['value']; |
|
2604 | } |
|
2605 | ||
2606 | $this->sheets[] = [ |
|
2607 | 'name' => $rec_name, |
|
@@ 4094-4100 (lines=7) @@ | ||
4091 | ||
4092 | // add cell value |
|
4093 | // todo: what if string is very long? continue record |
|
4094 | if ($this->version == self::XLS_BIFF8) { |
|
4095 | $string = self::readUnicodeStringLong(substr($recordData, 6)); |
|
4096 | $value = $string['value']; |
|
4097 | } else { |
|
4098 | $string = $this->readByteStringLong(substr($recordData, 6)); |
|
4099 | $value = $string['value']; |
|
4100 | } |
|
4101 | if ($this->readEmptyCells || trim($value) !== '') { |
|
4102 | $cell = $this->phpSheet->getCell($columnString . ($row + 1)); |
|
4103 | $cell->setValueExplicit($value, \PhpSpreadsheet\Cell\DataType::TYPE_STRING); |