From 9b6663f87a7e679ffba691cf516191fc840cf978 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Tue, 24 Nov 2009 19:20:36 -0800 Subject: Update to Kohana r4684 which is now Kohana 2.4 and has substantial changes. --- system/core/utf8/to_unicode.php | 141 ---------------------------------------- 1 file changed, 141 deletions(-) delete mode 100644 system/core/utf8/to_unicode.php (limited to 'system/core/utf8/to_unicode.php') diff --git a/system/core/utf8/to_unicode.php b/system/core/utf8/to_unicode.php deleted file mode 100644 index 93f741a6..00000000 --- a/system/core/utf8/to_unicode.php +++ /dev/null @@ -1,141 +0,0 @@ - 0x10FFFF)) - { - trigger_error('utf8::to_unicode: Illegal sequence or codepoint in UTF-8 at byte '.$i, E_USER_WARNING); - return FALSE; - } - - if (0xFEFF != $mUcs4) - { - // BOM is legal but we don't want to output it - $out[] = $mUcs4; - } - - // Initialize UTF-8 cache - $mState = 0; - $mUcs4 = 0; - $mBytes = 1; - } - } - else - { - // ((0xC0 & (*in) != 0x80) AND (mState != 0)) - // Incomplete multi-octet sequence - trigger_error('utf8::to_unicode: Incomplete multi-octet sequence in UTF-8 at byte '.$i, E_USER_WARNING); - return FALSE; - } - } - } - - return $out; -} \ No newline at end of file -- cgit v1.2.3