mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 21:49:21 +03:00
1.6.0 release
CardDav support. New skin (Blurred). Login animation. Small fixes.
This commit is contained in:
parent
bc6c320ecb
commit
011855bf8a
26 changed files with 386 additions and 337 deletions
|
|
@ -408,8 +408,11 @@ if (!function_exists('mb_strcut'))
|
|||
{
|
||||
function mb_strcut($str, $start, $length = null, $encoding = '')
|
||||
{
|
||||
// TODO
|
||||
return \MailSo\Base\Utils::Utf8Clear(substr($str, $start, $length));
|
||||
$match = array();
|
||||
// use the regex unicode support to separate the UTF-8 characters into an array
|
||||
preg_match_all( '/./us', $str, $match );
|
||||
$chars = is_null( $length )? array_slice( $match[0], $start ) : array_slice( $match[0], $start, $length );
|
||||
return implode( '', $chars );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue