You are here

private function PHPExcel_Writer_Excel5_Worksheet::_writeRichTextString 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::_writeRichTextString()

* Write a LABELSST record or a LABEL record. Which one depends on BIFF version * It differs from _writeString by the writing of rich text strings. *

Parameters

int $row Row index (0-based): * @param int $col Column index (0-based) * @param string $str The string * @param mixed $xfIndex The XF format index for the cell * @param array $arrcRun Index to Font record and characters beginning

1 call to PHPExcel_Writer_Excel5_Worksheet::_writeRichTextString()
PHPExcel_Writer_Excel5_Worksheet::close in vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Worksheet.php
* Add data to the beginning of the workbook (note the reverse order) * and to the end of the workbook. * * @access public *

File

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

Class

PHPExcel_Writer_Excel5_Worksheet
PHPExcel_Writer_Excel5_Worksheet

Code

private function _writeRichTextString($row, $col, $str, $xfIndex, $arrcRun) {
  $record = 0xfd;

  // Record identifier
  $length = 0xa;

  // Bytes to follow
  $str = PHPExcel_Shared_String::UTF8toBIFF8UnicodeShort($str, $arrcRun);

  /* check if string is already present */
  if (!isset($this->_str_table[$str])) {
    $this->_str_table[$str] = $this->_str_unique++;
  }
  $this->_str_total++;
  $header = pack('vv', $record, $length);
  $data = pack('vvvV', $row, $col, $xfIndex, $this->_str_table[$str]);
  $this
    ->_append($header . $data);
}