[ Index ]

PHP Cross Reference of phpwcms V1.5.0 _r431 (28.01.12)

title

Body

[close]

/include/inc_ext/idna_convert/ -> uctc.php (summary)

(no description)

File Size: 300 lines (11 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

uctc:: (9 methods):
  convert()
  utf8_ucs4array()
  ucs4array_utf8()
  utf7imap_ucs4array()
  utf7_ucs4array()
  ucs4array_utf7imap()
  ucs4array_utf7()
  ucs4array_ucs4()
  ucs4_ucs4array()


Class: uctc  - X-Ref

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)

convert($data, $from, $to, $safe_mode = false, $safe_char = 0xFFFC)   X-Ref
The actual conversion routine

param: mixed $data  The data to convert, usually a string, array when converting from UCS-4 array
param: string $from  Original encoding of the data
param: string $to  Target encoding of the data
param: bool $safe_mode  SafeMode tries to correct invalid codepoints
return: mixed  False on failure, String or array on success, depending on target encoding

utf8_ucs4array($input)   X-Ref
This converts an UTF-8 encoded string to its UCS-4 representation

param: string $input  The UTF-8 string to convert
return: array  Array of 32bit values representing each codepoint

ucs4array_utf8($input)   X-Ref
Convert UCS-4 string into UTF-8 string
See utf8_ucs4array() for details


utf7imap_ucs4array($input)   X-Ref
No description

utf7_ucs4array($input, $sc = '+')   X-Ref
No description

ucs4array_utf7imap($input)   X-Ref
No description

ucs4array_utf7($input, $sc = '+')   X-Ref
No description

ucs4array_ucs4($input)   X-Ref
Convert UCS-4 array into UCS-4 string (Little Endian at the moment)


ucs4_ucs4array($input)   X-Ref
Convert UCS-4 string (LE in the moment) into UCS-4 garray




Generated: Sun Jan 29 16:31:14 2012 Cross-referenced by PHPXref 0.7.1