Subversion Repositories Sites.obs-saisons.fr

Compare Revisions

Ignore whitespace Rev 261 → Rev 262

/trunk/applications/jrest/lib/Spreadsheet/Excel/Writer/Worksheet.php
1187,7 → 1187,7
$row = $match[2];
// Convert base26 column string to number
$chars = split('', $col);
$chars = explode('', $col);
$expn = 0;
$col = 0;
1217,7 → 1217,7
$i = 1; // char position
// split the plain text password in its component characters
$chars = preg_split('//', $plaintext, -1, PREG_SPLIT_NO_EMPTY);
$chars = preg_explode('//', $plaintext, -1, PREG_SPLIT_NO_EMPTY);
foreach($chars as $char)
{
$value = ord($char) << $i; // shifted ASCII value
1685,7 → 1685,7
$options = pack("V", 0x03);
// Convert URL to a null terminated wchar string
$url = join("\0", preg_split("''", $url, -1, PREG_SPLIT_NO_EMPTY));
$url = join("\0", preg_explode("''", $url, -1, PREG_SPLIT_NO_EMPTY));
$url = $url . "\0\0\0";
// Pack the length of the URL
1747,7 → 1747,7
$options = pack("V", 0x08);
// Convert the URL type and to a null terminated wchar string
$url = join("\0", preg_split("''", $url, -1, PREG_SPLIT_NO_EMPTY));
$url = join("\0", preg_explode("''", $url, -1, PREG_SPLIT_NO_EMPTY));
$url = $url . "\0\0\0";
// Pack the length of the URL as chars (not wchars)
1830,13 → 1830,13
// Determine if the link contains a sheet reference and change some of the
// parameters accordingly.
// Split the dir name and sheet name (if it exists)
list($dir_long , $sheet) = split('/\#/', $url);
list($dir_long , $sheet) = explode('/\#/', $url);
$link_type = 0x01 | $absolute;
if (isset($sheet)) {
$link_type |= 0x08;
$sheet_len = pack("V", strlen($sheet) + 0x01);
$sheet = join("\0", split('', $sheet));
$sheet = join("\0", explode('', $sheet));
$sheet .= "\0\0\0";
}
else {
1855,7 → 1855,7
$dir_short = preg_replace('/\.\.\\/', '', $dir_long) . "\0";
// Store the long dir name as a wchar string (non-null terminated)
$dir_long = join("\0", split('', $dir_long));
$dir_long = join("\0", explode('', $dir_long));
$dir_long = $dir_long . "\0";
// Pack the lengths of the dir strings