public static function PHPExcel_Reader_Excel5::_GetInt4d in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5.php \PHPExcel_Reader_Excel5::_GetInt4d()
* Read 32-bit signed integer * *
Parameters
string $data: * @param int $pos * @return int
35 calls to PHPExcel_Reader_Excel5::_GetInt4d()
- PHPExcel_Reader_Excel5::_extractNumber in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Reader/ Excel5.php - * Reads first 8 bytes of a string and return IEEE 754 float * *
- PHPExcel_Reader_Excel5::_readDataValidation in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Reader/ Excel5.php - * Read DATAVALIDATION record
- PHPExcel_Reader_Excel5::_readDocumentSummaryInformation in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Reader/ Excel5.php - * Read additional document summary information
- PHPExcel_Reader_Excel5::_readHyperLink in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Reader/ Excel5.php - * Read HYPERLINK record
- PHPExcel_Reader_Excel5::_readImData in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Reader/ Excel5.php - * Read IMDATA record
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Reader/ Excel5.php, line 6787
Class
- PHPExcel_Reader_Excel5
- PHPExcel_Reader_Excel5
Code
public static function _GetInt4d($data, $pos) {
// FIX: represent numbers correctly on 64-bit system
// http://sourceforge.net/tracker/index.php?func=detail&aid=1487372&group_id=99160&atid=623334
// Hacked by Andreas Rehm 2006 to ensure correct result of the <<24 block on 32 and 64bit systems
$_or_24 = ord($data[$pos + 3]);
if ($_or_24 >= 128) {
// negative number
$_ord_24 = -abs(256 - $_or_24 << 24);
}
else {
$_ord_24 = ($_or_24 & 127) << 24;
}
return ord($data[$pos]) | ord($data[$pos + 1]) << 8 | ord($data[$pos + 2]) << 16 | $_ord_24;
}