public static function PHPExcel_Shared_String::Substring in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/String.php \PHPExcel_Shared_String::Substring()
* Get a substring of a UTF-8 encoded string. First try mbstring, then iconv, finally strlen * *
Parameters
string $pValue UTF-8 encoded string: * @param int $pStart Start offset * @param int $pLength Maximum number of characters in substring * @return string
5 calls to PHPExcel_Shared_String::Substring()
- PHPExcel_Cell_DataType::checkString in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Cell/ DataType.php - Check a string that it satisfies Excel requirements
- 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_Worksheet::setCodeName in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Worksheet.php - * Define the code name of the sheet * *
- PHPExcel_Worksheet::setTitle in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Worksheet.php - Set title
- PHPExcel_Worksheet::_checkSheetCodeName in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Worksheet.php - Check sheet code name for valid Excel syntax
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Shared/ String.php, line 572
Class
- PHPExcel_Shared_String
- PHPExcel_Shared_String
Code
public static function Substring($pValue = '', $pStart = 0, $pLength = 0) {
if (self::getIsMbstringEnabled()) {
return mb_substr($pValue, $pStart, $pLength, 'UTF-8');
}
if (self::getIsIconvEnabled()) {
return iconv_substr($pValue, $pStart, $pLength, 'UTF-8');
}
// else substr
return substr($pValue, $pStart, $pLength);
}