|
static | convert ($data, $from, $to, $safe_mode=false, $safe_char=0xFFFC) |
|
◆ convert()
static convert |
( |
|
$data, |
|
|
|
$from, |
|
|
|
$to, |
|
|
|
$safe_mode = false , |
|
|
|
$safe_char = 0xFFFC |
|
) |
| |
|
static |
The actual conversion routine
- Paramètres
-
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 |
- Renvoie
- mixed False on failure, String or array on success, depending on target encoding public
- Depuis
- 0.0.1
Références $data, $safe_char, et $safe_mode.
◆ ucs4_ucs4array()
static ucs4_ucs4array |
( |
|
$input | ) |
|
|
staticprivate |
Convert UCS-4 string (LE in the moment) into UCS-4 garray private
Références $i, $input, et $output.
◆ ucs4array_ucs4()
static ucs4array_ucs4 |
( |
|
$input | ) |
|
|
staticprivate |
Convert UCS-4 array into UCS-4 string (Little Endian at the moment) private
Références $input, et $output.
◆ ucs4array_utf7()
static ucs4array_utf7 |
( |
|
$input, |
|
|
|
$sc = '+' |
|
) |
| |
|
staticprivate |
◆ ucs4array_utf7imap()
static ucs4array_utf7imap |
( |
|
$input | ) |
|
|
staticprivate |
◆ ucs4array_utf8()
static ucs4array_utf8 |
( |
|
$input | ) |
|
|
staticprivate |
◆ utf7_ucs4array()
static utf7_ucs4array |
( |
|
$input, |
|
|
|
$sc = '+' |
|
) |
| |
|
staticprivate |
◆ utf7imap_ucs4array()
static utf7imap_ucs4array |
( |
|
$input | ) |
|
|
staticprivate |
◆ utf8_ucs4array()
static utf8_ucs4array |
( |
|
$input | ) |
|
|
staticprivate |
This converts an UTF-8 encoded string to its UCS-4 representation
- Paramètres
-
string | $input | The UTF-8 string to convert |
- Renvoie
- array Array of 32bit values representing each codepoint private
Références $input, $mode, $output, et elseif.
◆ $allow_overlong
◆ $mechs
$mechs = array('ucs4', 'ucs4array', 'utf8', 'utf7', 'utf7imap') |
|
staticprivate |
◆ $safe_char
◆ $safe_mode
La documentation de cette classe a été générée à partir du fichier suivant :