XOOPS API 2.5.11 Beta1  UI v0.5
Réalisé par monxoops.fr
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe Iconv

Fonctions membres publiques statiques

static iconv ($inCharset, $outCharset, $str)
 
static iconv_mime_decode_headers ($str, $mode=0, $charset=null)
 
static iconv_mime_decode ($str, $mode=0, $charset=null)
 
static iconv_get_encoding ($type='all')
 
static iconv_set_encoding ($type, $charset)
 
static iconv_mime_encode ($fieldName, $fieldValue, $pref=null)
 
static iconv_strlen ($s, $encoding=null)
 
static strlen1 ($s, $encoding=null)
 
static strlen2 ($s, $encoding=null)
 
static iconv_strpos ($haystack, $needle, $offset=0, $encoding=null)
 
static iconv_strrpos ($haystack, $needle, $encoding=null)
 
static iconv_substr ($s, $start, $length=2147483647, $encoding=null)
 

Champs de données

const ERROR_ILLEGAL_CHARACTER = 'iconv(): Detected an illegal character in input string'
 
const ERROR_WRONG_CHARSET = 'iconv(): Wrong charset, conversion from `%s\' to `%s\' is not allowed'
 

Attributs publics statiques

static $inputEncoding = 'utf-8'
 
static $outputEncoding = 'utf-8'
 
static $internalEncoding = 'utf-8'
 

Fonctions membres privées statiques

static loadMap ($type, $charset, &$map)
 
static utf8ToUtf8 ($str, $ignore)
 
static mapToUtf8 (&$result, array $map, $str, $ignore)
 
static mapFromUtf8 (&$result, array $map, $str, $ignore, $translit)
 
static qpByteCallback (array $m)
 
static pregOffset ($offset)
 
static getData ($file)
 

Attributs privés statiques

static $alias
 
static $translitMap = array()
 
static $convertMap = array()
 
static $errorHandler
 
static $lastError
 
static $ulenMask = array("\xC0" => 2, "\xD0" => 2, "\xE0" => 3, "\xF0" => 4)
 
static $isValidUtf8
 

Description détaillée

iconv implementation in pure PHP, UTF-8 centric.

Implemented:

  • iconv - Convert string to requested character encoding
  • iconv_mime_decode - Decodes a MIME header field
  • iconv_mime_decode_headers - Decodes multiple MIME header fields at once
  • iconv_get_encoding - Retrieve internal configuration variables of iconv extension
  • iconv_set_encoding - Set current setting for character encoding conversion
  • iconv_mime_encode - Composes a MIME header field
  • iconv_strlen - Returns the character count of string
  • iconv_strpos - Finds position of first occurrence of a needle within a haystack
  • iconv_strrpos - Finds the last occurrence of a needle within a haystack
  • iconv_substr - Cut out part of a string

Charsets available for conversion are defined by files in the charset/ directory and by Iconv::$alias below. You're welcome to send back any addition you make.

Auteur
Nicolas Grekas p@tch.nosp@m.work.nosp@m..com

Documentation des fonctions membres

◆ getData()

static getData (   $file)
staticprivate
+ Voici le graphe des appelants de cette fonction :

◆ iconv()

static iconv (   $inCharset,
  $outCharset,
  $str 
)
static
+ Voici le graphe d'appel pour cette fonction :
+ Voici le graphe des appelants de cette fonction :

◆ iconv_get_encoding()

static iconv_get_encoding (   $type = 'all')
static

◆ iconv_mime_decode()

static iconv_mime_decode (   $str,
  $mode = 0,
  $charset = null 
)
static
+ Voici le graphe d'appel pour cette fonction :
+ Voici le graphe des appelants de cette fonction :

◆ iconv_mime_decode_headers()

static iconv_mime_decode_headers (   $str,
  $mode = 0,
  $charset = null 
)
static
+ Voici le graphe d'appel pour cette fonction :

◆ iconv_mime_encode()

static iconv_mime_encode (   $fieldName,
  $fieldValue,
  $pref = null 
)
static

◆ iconv_set_encoding()

static iconv_set_encoding (   $type,
  $charset 
)
static

◆ iconv_strlen()

static iconv_strlen (   $s,
  $encoding = null 
)
static
+ Voici le graphe d'appel pour cette fonction :
+ Voici le graphe des appelants de cette fonction :

◆ iconv_strpos()

static iconv_strpos (   $haystack,
  $needle,
  $offset = 0,
  $encoding = null 
)
static
+ Voici le graphe d'appel pour cette fonction :

◆ iconv_strrpos()

static iconv_strrpos (   $haystack,
  $needle,
  $encoding = null 
)
static
+ Voici le graphe d'appel pour cette fonction :

◆ iconv_substr()

static iconv_substr (   $s,
  $start,
  $length = 2147483647,
  $encoding = null 
)
static
+ Voici le graphe d'appel pour cette fonction :
+ Voici le graphe des appelants de cette fonction :

◆ loadMap()

static loadMap (   $type,
  $charset,
$map 
)
staticprivate

◆ mapFromUtf8()

static mapFromUtf8 ( $result,
array  $map,
  $str,
  $ignore,
  $translit 
)
staticprivate
+ Voici le graphe d'appel pour cette fonction :

◆ mapToUtf8()

static mapToUtf8 ( $result,
array  $map,
  $str,
  $ignore 
)
staticprivate

◆ pregOffset()

static pregOffset (   $offset)
staticprivate
+ Voici le graphe des appelants de cette fonction :

◆ qpByteCallback()

static qpByteCallback ( array  $m)
staticprivate

◆ strlen1()

static strlen1 (   $s,
  $encoding = null 
)
static
+ Voici le graphe des appelants de cette fonction :

◆ strlen2()

static strlen2 (   $s,
  $encoding = null 
)
static
+ Voici le graphe des appelants de cette fonction :

◆ utf8ToUtf8()

static utf8ToUtf8 (   $str,
  $ignore 
)
staticprivate
+ Voici le graphe des appelants de cette fonction :

Documentation des champs

◆ $alias

$alias
staticprivate

◆ $convertMap

$convertMap = array()
staticprivate

◆ $errorHandler

$errorHandler
staticprivate

◆ $inputEncoding

$inputEncoding = 'utf-8'
static

◆ $internalEncoding

$internalEncoding = 'utf-8'
static

◆ $isValidUtf8

$isValidUtf8
staticprivate

◆ $lastError

$lastError
staticprivate

◆ $outputEncoding

$outputEncoding = 'utf-8'
static

◆ $translitMap

$translitMap = array()
staticprivate

◆ $ulenMask

$ulenMask = array("\xC0" => 2, "\xD0" => 2, "\xE0" => 3, "\xF0" => 4)
staticprivate

◆ ERROR_ILLEGAL_CHARACTER

const ERROR_ILLEGAL_CHARACTER = 'iconv(): Detected an illegal character in input string'

◆ ERROR_WRONG_CHARSET

const ERROR_WRONG_CHARSET = 'iconv(): Wrong charset, conversion from `%s\' to `%s\' is not allowed'

La documentation de cette classe a été générée à partir du fichier suivant :