Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
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'
 
static xD0 => 2, "\xE0" => 3, "\xF0" => 4]
 

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 static $translitMap = []
 
static $convertMap = []
 
static $errorHandler
 
static $lastError
 
static $ulenMask = ["\xC0" => 2
 
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

Références __DIR__.

◆ iconv()

static iconv (   $inCharset,
  $outCharset,
  $str 
)
static

Références $loop, et $result.

◆ iconv_get_encoding()

static iconv_get_encoding (   $type = 'all')
static

Références $type.

◆ iconv_mime_decode()

static iconv_mime_decode (   $str,
  $mode = 0,
  $charset = null 
)
static

Références $c, $i, $mode, $result, elseif, et null.

◆ iconv_mime_decode_headers()

static iconv_mime_decode_headers (   $str,
  $mode = 0,
  $charset = null 
)
static

Références $mode, et null.

◆ iconv_mime_encode()

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

Références $c, et $fieldValue.

◆ iconv_set_encoding()

static iconv_set_encoding (   $type,
  $charset 
)
static

Références $type.

◆ iconv_strlen()

static iconv_strlen (   $s,
  $encoding = null 
)
static

Références null.

◆ iconv_strpos()

static iconv_strpos (   $haystack,
  $needle,
  $offset = 0,
  $encoding = null 
)
static

◆ iconv_strrpos()

static iconv_strrpos (   $haystack,
  $needle,
  $encoding = null 
)
static

Références false, et null.

◆ iconv_substr()

static iconv_substr (   $s,
  $start,
  $length = 2147483647,
  $encoding = null 
)
static

Références $start, elseif, et null.

◆ loadMap()

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

Références $type.

◆ mapFromUtf8()

static mapFromUtf8 ( $result,
array  $map,
  $str,
  $ignore,
  $translit 
)
staticprivate

◆ mapToUtf8()

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

Références $i, $result, et elseif.

◆ pregOffset()

static pregOffset (   $offset)
staticprivate

◆ qpByteCallback()

static qpByteCallback ( array  $m)
staticprivate

◆ strlen1()

static strlen1 (   $s,
  $encoding = null 
)
static

Références null.

◆ strlen2()

static strlen2 (   $s,
  $encoding = null 
)
static

Références $i, Iconv\$ulenMask, et null.

◆ utf8ToUtf8()

static utf8ToUtf8 (   $str,
  $ignore 
)
staticprivate

Références $i, et Iconv\$ulenMask.

Documentation des champs

◆ $alias

$alias
staticprivate
Valeur initiale :
= [
'utf8' => 'utf-8'

◆ $convertMap

$convertMap = []
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

static $translitMap = []
staticprivate

◆ $ulenMask

$ulenMask = ["\xC0" => 2
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'

◆ xD0

xD0 => 2, "\xE0" => 3, "\xF0" => 4]
static

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