til we have found // abs($start) characters $start = abs($start); $bytes = $strlen; $chars = 0; while ($bytes > 0 && $chars < $start) { $bytes--; $c = ord($text[$bytes]); if ($c < 0x80 || $c >= 0xC0) { $chars++; } } } $istart = $bytes; // Find the ending byte offset if ($length === NULL) { $bytes = $strlen - 1; } else if ($length > 0) { // Count all the continuation bytes from the starting index until we have // found $length + 1 characters. Then backtrack one byte. $bytes = $istart; $chars = 0; while ($bytes < $strlen && $chars < $length) { $bytes++; $c = ord($text[$bytes]); if ($c < 0x80 || $c >= 0xC0) { $chars++; } } $bytes--; } else if ($length < 0) { // Count all the continuation bytes from the end until we have found // abs($length) characters $length = abs($length); $bytes = $strlen - 1; $chars = 0; while ($bytes >= 0 && $chars < $length) { $c = ord($text[$bytes]); if ($c < 0x80 || $c >= 0xC0) { $chars++; } $bytes--; } } $iend = $bytes; return substr($text, $istart, max(0, $iend - $istart + 1)); } }
Fatal error: Call to undefined function unicode_check() in /home/ferrylim/public_html/double8design.com/includes/theme.maintenance.inc on line 32