You are here

public static function PHPExcel_Shared_String::CountCharacters in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/String.php \PHPExcel_Shared_String::CountCharacters()

* Get character count. First try mbstring, then iconv, finally strlen * *

Parameters

string $value: * @param string $enc Encoding * @return int Character count

13 calls to PHPExcel_Shared_String::CountCharacters()
PHPExcel_Calculation_TextData::SEARCHINSENSITIVE in vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/TextData.php
* SEARCHINSENSITIVE * *
PHPExcel_Calculation_TextData::SEARCHSENSITIVE in vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/TextData.php
* SEARCHSENSITIVE * *
PHPExcel_Reader_Excel5::_readLabelSst in vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5.php
* Read LABELSST record * This record represents a cell that contains a string. It * replaces the LABEL record and RSTRING record used in * BIFF2-BIFF5. * * -- "OpenOffice.org's Documentation of the Microsoft * Excel File…
PHPExcel_Shared_Font::getTextWidthPixelsApprox in vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/Font.php
* Get approximate width in pixels for a string of text in a certain font at a certain rotation angle * *
PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong in vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/String.php
* 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…

... See full list

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/String.php, line 550

Class

PHPExcel_Shared_String
PHPExcel_Shared_String

Code

public static function CountCharacters($value, $enc = 'UTF-8') {
  if (self::getIsMbstringEnabled()) {
    return mb_strlen($value, $enc);
  }
  if (self::getIsIconvEnabled()) {
    return iconv_strlen($value, $enc);
  }

  // else strlen
  return strlen($value);
}