original_string: protected function cropMbstring($charset, $string, $len, $crop = '') {
  		if (intval($len) === 0 || mb_strlen($string, $charset) <= abs($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;
  	}
code: protected function cropMbstring($charset, $string, $len, $crop = '') {
  		if (intval($len) === 0 || mb_strlen($string, $charset) <= abs($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;
  	}
code_tokens: protected function cropMbstring ( $ charset , $ string , $ len , $ crop = '' ) { if ( intval ( $ len ) === 0 || mb_strlen ( $ string , $ charset ) <= abs ( $ 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 ; }
docstring: Method to crop strings using the mb_substr function.
  
  @param  string		The character set
  @param  string		String to be cropped
  @param  integer		Crop length (in characters)
  @param  string		Crop signifier
  @return string		The shortened string
  @see mb_strlen(), mb_substr()
docstring_tokens: Method to crop strings using the mb_substr function .