\uctc
UCTC - The Unicode Transcoder
Converts between various flavours of Unicode representations like UCS-4 or UTF-8
Supported schemes:
- UCS-4 Little Endian / Big Endian / Array (partially)
- UTF-16 Little Endian / Big Endian (not yet)
- UTF-8
- UTF-7
- UTF-7 IMAP (modified UTF-7)
- Author: Matthias Sommerfeld <mso@phlyLabs.de>
- Copyright: 2003-2009 phlyLabs Berlin, http://phlylabs.de
Synopsis
class uctc
{
- // members
- private $mechs;
- private $allow_overlong;
- private $safe_mode;
- private $safe_char;
- // methods
- public static mixed convert()
- private static array utf8_ucs4array()
- private static void ucs4array_utf8()
- private static void utf7imap_ucs4array()
- private static void utf7_ucs4array()
- private static void ucs4array_utf7imap()
- private static void ucs4array_utf7()
- private static void ucs4array_ucs4()
- private static void ucs4_ucs4array()
Members
private
- $allow_overlong
- $mechs
- $safe_char
- $safe_mode
Methods
private
- ucs4_ucs4array() — Convert UCS-4 string (LE in the moment) into UCS-4 garray
- ucs4array_ucs4() — Convert UCS-4 array into UCS-4 string (Little Endian at the moment)
- ucs4array_utf7()
- ucs4array_utf7imap()
- ucs4array_utf8() — Convert UCS-4 string into UTF-8 string See utf8_ucs4array() for details
- utf7_ucs4array()
- utf7imap_ucs4array()
- utf8_ucs4array() — This converts an UTF-8 encoded string to its UCS-4 representation
public
- convert() — The actual conversion routine