Zend Framework
3.0
|
Utility class for handling strings of different character encodings using available PHP extensions. More...
Static Public Member Functions | |
static | getRegisteredWrappers () |
Get registered wrapper classes. | |
static | registerWrapper ($wrapper) |
Register a string wrapper class. | |
static | unregisterWrapper ($wrapper) |
Unregister a string wrapper class. | |
static | resetRegisteredWrappers () |
Reset all registered wrappers so the default wrappers will be used. | |
static | getWrapper ($encoding= 'UTF-8', $convertEncoding=null) |
Get the first string wrapper supporting the given character encoding and supports to convert into the given convert encoding. | |
static | getSingleByteEncodings () |
Get a list of all known single-byte character encodings. | |
static | isSingleByteEncoding ($encoding) |
Check if a given encoding is a known single-byte character encoding. | |
static | isValidUtf8 ($str) |
Check if a given string is valid UTF-8 encoded. | |
static | hasPcreUnicodeSupport () |
Is PCRE compiled with Unicode support? | |
Static Protected Attributes | |
static | $wrapperRegistry = null |
static | $singleByteEncodings |
static | $hasPcreUnicodeSupport = null |
Utility class for handling strings of different character encodings using available PHP extensions.
Declared abstract, as we have no need for instantiation.
|
static |
Get registered wrapper classes.
|
static |
Get a list of all known single-byte character encodings.
|
static |
Get the first string wrapper supporting the given character encoding and supports to convert into the given convert encoding.
string | $encoding | Character encoding to support |
string | null | $convertEncoding | OPTIONAL character encoding to convert in |
Exception\RuntimeException | If no wrapper supports given character encodings |
|
static |
Is PCRE compiled with Unicode support?
|
static |
Check if a given encoding is a known single-byte character encoding.
string | $encoding |
|
static |
Check if a given string is valid UTF-8 encoded.
string | $str |
|
static |
Register a string wrapper class.
string | $wrapper |
|
static |
Reset all registered wrappers so the default wrappers will be used.
|
static |
Unregister a string wrapper class.
string | $wrapper |
|
staticprotected |
|
staticprotected |
|
staticprotected |