You are here

private function PHPExcel_Writer_Excel5_Worksheet::_writeStringRecord in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Worksheet.php \PHPExcel_Writer_Excel5_Worksheet::_writeStringRecord()

* Write a STRING record. This * *

Parameters

string $stringValue:

1 call to PHPExcel_Writer_Excel5_Worksheet::_writeStringRecord()
PHPExcel_Writer_Excel5_Worksheet::_writeFormula in vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Worksheet.php
* Write a formula to the specified row and column (zero indexed). * The textual representation of the formula is passed to the parser in * Parser.php which returns a packed binary string. * * Returns 0 : normal termination * -1 : formula…

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Worksheet.php, line 948

Class

PHPExcel_Writer_Excel5_Worksheet
PHPExcel_Writer_Excel5_Worksheet

Code

private function _writeStringRecord($stringValue) {
  $record = 0x207;

  // Record identifier
  $data = PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($stringValue);
  $length = strlen($data);
  $header = pack('vv', $record, $length);
  $this
    ->_append($header . $data);
}