From 0ea41c7996e1f04f5de88eff0edb9e6f845dc09e Mon Sep 17 00:00:00 2001 From: Mark Baker Date: Wed, 8 Dec 2010 15:08:09 +0000 Subject: [PATCH] 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 --- Classes/PHPExcel/Reader/Excel5.php | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/Classes/PHPExcel/Reader/Excel5.php b/Classes/PHPExcel/Reader/Excel5.php index 7b7fbe0..c1f9c1f 100644 --- a/Classes/PHPExcel/Reader/Excel5.php +++ b/Classes/PHPExcel/Reader/Excel5.php @@ -6149,7 +6149,7 @@ class PHPExcel_Reader_Excel5 implements PHPExcel_Reader_IReader if ($color <= 0x07 || $color >= 0x40) { // special built-in color return self::_mapBuiltInColor($color); - } else if (isset($palette) && isset($palette[$color - 8])) { + } elseif (isset($palette) && isset($palette[$color - 8])) { // palette color, color index 0x08 maps to pallete index 0 return $palette[$color - 8]; } else { @@ -6409,21 +6409,3 @@ class PHPExcel_Reader_Excel5 implements PHPExcel_Reader_IReader } } - -function hexDump($string) { - - echo '
';
-	for ($i = 0; $i < strlen($string); $i++) {
-		if (($i % 16) == 0) {
-			echo '
'; - 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 '

'; -}