@@ 2574-2580 (lines=7) @@ | ||
2571 | $sheetType = ord($recordData{5}); |
|
2572 | ||
2573 | // offset: 6; size: var; sheet name |
|
2574 | if ($this->version == self::XLS_BIFF8) { |
|
2575 | $string = self::readUnicodeStringShort(substr($recordData, 6)); |
|
2576 | $rec_name = $string['value']; |
|
2577 | } elseif ($this->version == self::XLS_BIFF7) { |
|
2578 | $string = $this->readByteStringShort(substr($recordData, 6)); |
|
2579 | $rec_name = $string['value']; |
|
2580 | } |
|
2581 | ||
2582 | $this->sheets[] = [ |
|
2583 | 'name' => $rec_name, |
|
@@ 4070-4076 (lines=7) @@ | ||
4067 | ||
4068 | // add cell value |
|
4069 | // todo: what if string is very long? continue record |
|
4070 | if ($this->version == self::XLS_BIFF8) { |
|
4071 | $string = self::readUnicodeStringLong(substr($recordData, 6)); |
|
4072 | $value = $string['value']; |
|
4073 | } else { |
|
4074 | $string = $this->readByteStringLong(substr($recordData, 6)); |
|
4075 | $value = $string['value']; |
|
4076 | } |
|
4077 | if ($this->readEmptyCells || trim($value) !== '') { |
|
4078 | $cell = $this->phpSheet->getCell($columnString . ($row + 1)); |
|
4079 | $cell->setValueExplicit($value, \PhpOffice\PhpSpreadsheet\Cell\DataType::TYPE_STRING); |