Class uctc

Description

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)

Located in /libraries/idna_convert/uctc.php (line 18)


	
			
Method Summary
 static mixed convert (mixed $data, string $from, string $to, [bool $safe_mode = false], [ $safe_char = 0xFFFC])
Methods
static convert (line 35)

The actual conversion routine

  • return: False on failure, String or array on success, depending on target encoding
  • since: 0.0.1
  • access: public
static mixed convert (mixed $data, string $from, string $to, [bool $safe_mode = false], [ $safe_char = 0xFFFC])
  • 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
  • $safe_char

Documentation generated on Tue, 19 Nov 2013 15:16:05 +0100 by phpDocumentor 1.4.3