@@ 3827-3833 (lines=7) @@ | ||
3824 | ||
3825 | // read STRING record |
|
3826 | $value = $this->readString(); |
|
3827 | } elseif ((ord($recordData[6]) == 1) |
|
3828 | && (ord($recordData[12]) == 255) |
|
3829 | && (ord($recordData[13]) == 255)) { |
|
3830 | // Boolean formula. Result is in +2; 0=false, 1=true |
|
3831 | $dataType = \PhpOffice\PhpSpreadsheet\Cell\DataType::TYPE_BOOL; |
|
3832 | $value = (bool) ord($recordData[8]); |
|
3833 | } elseif ((ord($recordData[6]) == 2) |
|
3834 | && (ord($recordData[12]) == 255) |
|
3835 | && (ord($recordData[13]) == 255)) { |
|
3836 | // Error formula. Error code is in +2 |
|
@@ 3839-3845 (lines=7) @@ | ||
3836 | // Error formula. Error code is in +2 |
|
3837 | $dataType = \PhpOffice\PhpSpreadsheet\Cell\DataType::TYPE_ERROR; |
|
3838 | $value = Xls\ErrorCode::lookup(ord($recordData[8])); |
|
3839 | } elseif ((ord($recordData[6]) == 3) |
|
3840 | && (ord($recordData[12]) == 255) |
|
3841 | && (ord($recordData[13]) == 255)) { |
|
3842 | // Formula result is a null string |
|
3843 | $dataType = \PhpOffice\PhpSpreadsheet\Cell\DataType::TYPE_NULL; |
|
3844 | $value = ''; |
|
3845 | } else { |
|
3846 | // forumla result is a number, first 14 bytes like _NUMBER record |
|
3847 | $dataType = \PhpOffice\PhpSpreadsheet\Cell\DataType::TYPE_NUMERIC; |
|
3848 | $value = self::extractNumber(substr($recordData, 6, 8)); |