Update Idna-Converter to version 1.0.2 (default IDNA standard is now 2008)

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2016-06-16 11:03:02 +02:00
parent 88ccf5b869
commit 843845a825
12 changed files with 4024 additions and 3469 deletions

View File

@@ -0,0 +1,40 @@
<?php
/**
* 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)
*
* @package IdnaConvert
* @author Matthias Sommerfeld <mso@phlyLabs.de>
* @copyright 2003-2016 phlyLabs Berlin, http://phlylabs.de
* @version 0.1.0 2016-01-08
*/
namespace Mso\IdnaConvert;
interface UnicodeTranscoderInterface
{
public static function convert($data, $from, $to, $safe_mode = false, $safe_char = 0xFFFC);
public static function utf8_ucs4array($input);
public static function ucs4array_utf8($input);
public static function utf7imap_ucs4array($input);
public static function utf7_ucs4array($input, $sc = '+');
public static function ucs4array_utf7imap($input);
public static function ucs4array_utf7($input, $sc = '+');
public static function ucs4array_ucs4($input);
public static function ucs4_ucs4array($input);
}