Minor performance tweaks

git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@62813 2327b42d-5241-43d6-9e2a-de5ac946f064
This commit is contained in:
Mark Baker 2010-10-26 14:22:31 +00:00
parent 42b1e0ad76
commit 66f0fb12d8

View File

@ -658,7 +658,10 @@ class PHPExcel_Cell
if ($pColumnIndex < 26) { if ($pColumnIndex < 26) {
return chr(65 + $pColumnIndex); return chr(65 + $pColumnIndex);
} }
return PHPExcel_Cell::stringFromColumnIndex((int)($pColumnIndex / 26) -1).chr(65 + $pColumnIndex%26) ; if ($pColumnIndex < 702) {
return chr(64 + ($pColumnIndex / 26)).chr(65 + $pColumnIndex % 26);
}
return chr(64 + (($pColumnIndex - 26) / 676)).chr(65 + ((($pColumnIndex - 26) % 676) / 26)).chr(65 + $pColumnIndex % 26);
} }
/** /**