|
static | convert ($data, $from, $to, $safe_mode=false, $safe_char=0xFFFC) |
|
Definition at line 18 of file uctc.php.
static convert |
( |
|
$data, |
|
|
|
$from, |
|
|
|
$to, |
|
|
|
$safe_mode = false , |
|
|
|
$safe_char = 0xFFFC |
|
) |
| |
|
static |
The actual conversion routine
- Parameters
-
mixed | $data | The data to convert, usually a string, array when converting from UCS-4 array |
string | $from | Original encoding of the data |
string | $to | Target encoding of the data |
bool | $safe_mode | SafeMode tries to correct invalid codepoints |
- Returns
- mixed False on failure, String or array on success, depending on target encoding public
- Since
- 0.0.1
Definition at line 35 of file uctc.php.
References $safe_char, and $safe_mode.
static ucs4_ucs4array |
( |
|
$input | ) |
|
|
staticprivate |
Convert UCS-4 string (LE in the moment) into UCS-4 garray private
Definition at line 278 of file uctc.php.
static ucs4array_ucs4 |
( |
|
$input | ) |
|
|
staticprivate |
Convert UCS-4 array into UCS-4 string (Little Endian at the moment) private
Definition at line 265 of file uctc.php.
static ucs4array_utf7 |
( |
|
$input, |
|
|
|
$sc = '+' |
|
) |
| |
|
staticprivate |
static ucs4array_utf7imap |
( |
|
$input | ) |
|
|
staticprivate |
static ucs4array_utf8 |
( |
|
$input | ) |
|
|
staticprivate |
static utf7_ucs4array |
( |
|
$input, |
|
|
|
$sc = '+' |
|
) |
| |
|
staticprivate |
static utf7imap_ucs4array |
( |
|
$input | ) |
|
|
staticprivate |
static utf8_ucs4array |
( |
|
$input | ) |
|
|
staticprivate |
This converts an UTF-8 encoded string to its UCS-4 representation
- Parameters
-
string | $input | The UTF-8 string to convert |
- Returns
- array Array of 32bit values representing each codepoint private
Definition at line 54 of file uctc.php.
References elseif.
$mechs = array('ucs4', 'ucs4array', 'utf8', 'utf7', 'utf7imap') |
|
staticprivate |