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