mirror of
https://github.com/retailcrm/PHPExcel.git
synced 2024-11-26 23:36:03 +03:00
Minor performance tweaks
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@62813 2327b42d-5241-43d6-9e2a-de5ac946f064
This commit is contained in:
parent
42b1e0ad76
commit
66f0fb12d8
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user