public static function PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/String.php \PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong()
* Converts a UTF-8 string into BIFF8 Unicode string data (16-bit string length) * Writes the string using uncompressed notation, no rich text, no Asian phonetics * If mbstring extension is not available, ASCII is assumed, and compressed notation is used * although this will give wrong results for non-ASCII strings * see OpenOffice.org's Documentation of the Microsoft Excel File Format, sect. 2.5.3 * *
Parameters
string $value UTF-8 encoded string: * @return string
9 calls to PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong()
- PHPExcel_Writer_Excel5_Workbook::_writeDefinedNameBiff8 in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Writer/ Excel5/ Workbook.php - * Write a DEFINEDNAME record for BIFF8 using explicit binary formula data * *
- PHPExcel_Writer_Excel5_Workbook::_writeNumFormat in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Writer/ Excel5/ Workbook.php - * Writes Excel FORMAT record for non "built-in" numerical formats. * *
- PHPExcel_Writer_Excel5_Worksheet::_writeCFRule in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Writer/ Excel5/ Worksheet.php - * Write CFRule Record *
- PHPExcel_Writer_Excel5_Worksheet::_writeDataValidity in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Writer/ Excel5/ Worksheet.php - * Store the DATAVALIDATIONS and DATAVALIDATION records.
- PHPExcel_Writer_Excel5_Worksheet::_writeFooter in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Writer/ Excel5/ Worksheet.php - * Store the footer caption BIFF record.
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Shared/ String.php, line 469
Class
- PHPExcel_Shared_String
- PHPExcel_Shared_String
Code
public static function UTF8toBIFF8UnicodeLong($value) {
// character count
$ln = self::CountCharacters($value, 'UTF-8');
// option flags
$opt = self::getIsIconvEnabled() || self::getIsMbstringEnabled() ? 0x1 : 0x0;
// characters
$chars = self::ConvertEncoding($value, 'UTF-16LE', 'UTF-8');
$data = pack('vC', $ln, $opt) . $chars;
return $data;
}