mirror of
https://github.com/retailcrm/PHPExcel.git
synced 2024-11-26 23:36:03 +03:00
Removed diagnostic hexDump() function from file. Not much use here anyway with the autoloader, if trying to hex dump anything other than read Excel5 files. Will move it to my debugging code, where it should be anyway.
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@65024 2327b42d-5241-43d6-9e2a-de5ac946f064
This commit is contained in:
parent
ac13feadec
commit
0ea41c7996
@ -6409,21 +6409,3 @@ class PHPExcel_Reader_Excel5 implements PHPExcel_Reader_IReader
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function hexDump($string) {
|
|
||||||
|
|
||||||
echo '<pre>';
|
|
||||||
for ($i = 0; $i < strlen($string); $i++) {
|
|
||||||
if (($i % 16) == 0) {
|
|
||||||
echo '<br />';
|
|
||||||
echo str_pad(strtoupper(dechex(floor($i/16))),3,'0',STR_PAD_LEFT),' ';
|
|
||||||
}
|
|
||||||
echo str_pad(strtoupper(dechex(ord($string{$i}))),2,'0',STR_PAD_LEFT),' ';
|
|
||||||
if ((ord($string{$i}) >= 32) && (ord($string{$i}) <= 127)) {
|
|
||||||
echo '(',$string{$i},') ';
|
|
||||||
} else {
|
|
||||||
echo '(¬) ';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
echo '</pre><hr />';
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user