@@ 3855-3861 (lines=7) @@ | ||
3852 | ||
3853 | // read STRING record |
|
3854 | $value = $this->readString(); |
|
3855 | } elseif ((ord($recordData{6}) == 1) |
|
3856 | && (ord($recordData{12}) == 255) |
|
3857 | && (ord($recordData{13}) == 255)) { |
|
3858 | // Boolean formula. Result is in +2; 0=false, 1=true |
|
3859 | $dataType = \PhpSpreadsheet\Cell\DataType::TYPE_BOOL; |
|
3860 | $value = (bool) ord($recordData{8}); |
|
3861 | } elseif ((ord($recordData{6}) == 2) |
|
3862 | && (ord($recordData{12}) == 255) |
|
3863 | && (ord($recordData{13}) == 255)) { |
|
3864 | // Error formula. Error code is in +2 |
|
@@ 3867-3873 (lines=7) @@ | ||
3864 | // Error formula. Error code is in +2 |
|
3865 | $dataType = \PhpSpreadsheet\Cell\DataType::TYPE_ERROR; |
|
3866 | $value = Excel5\ErrorCode::lookup(ord($recordData{8})); |
|
3867 | } elseif ((ord($recordData{6}) == 3) |
|
3868 | && (ord($recordData{12}) == 255) |
|
3869 | && (ord($recordData{13}) == 255)) { |
|
3870 | // Formula result is a null string |
|
3871 | $dataType = \PhpSpreadsheet\Cell\DataType::TYPE_NULL; |
|
3872 | $value = ''; |
|
3873 | } else { |
|
3874 | // forumla result is a number, first 14 bytes like _NUMBER record |
|
3875 | $dataType = \PhpSpreadsheet\Cell\DataType::TYPE_NUMERIC; |
|
3876 | $value = self::extractNumber(substr($recordData, 6, 8)); |