You are here

public static function PHPExcel_Calculation_TextData::STRINGLENGTH in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/TextData.php \PHPExcel_Calculation_TextData::STRINGLENGTH()

* STRINGLENGTH * *

Parameters

string $value Value: * @return string

1 call to PHPExcel_Calculation_TextData::STRINGLENGTH()
PHPExcel_Calculation_TextData::REPLACE in vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/TextData.php
* REPLACE * *

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/TextData.php, line 414

Class

PHPExcel_Calculation_TextData
PHPExcel_Calculation_TextData

Code

public static function STRINGLENGTH($value = '') {
  $value = PHPExcel_Calculation_Functions::flattenSingleValue($value);
  if (is_bool($value)) {
    $value = $value ? PHPExcel_Calculation::getTRUE() : PHPExcel_Calculation::getFALSE();
  }
  if (function_exists('mb_strlen')) {
    return mb_strlen($value, 'UTF-8');
  }
  else {
    return strlen($value);
  }
}