1455a1456,1478 > > /** > * Method to crop strings using the mb_strimwidth function. > * > * @param string The character set > * @param string Character string > * @param integer Length (in characters) > * @param string Crop signifier > * @return string The shortened string > * @see mb_strimwidth(), mb_substr() > * @author Timo Schmidt > */ > function cropMbstring($charset,$string,$len,$crop=''){ > if (intval($len) == 0 || mb_strlen($string) < $len) return $string; > > if($len > 0){ > $string = mb_substr($string, 0, $len, $charset).$crop; > }else{ > $string = $crop.mb_substr($string,$len,mb_strlen($string,$charset),$charset); > } > > return $string; > } 1469a1493,1496 > if($GLOBALS['TYPO3_CONF_VARS']['SYS']['t3lib_cs_convMethod'] == 'mbstring'){ > return $this->cropMbstring($charset,$string,$len,$crop); > } >