getRegisteredWrappers()
getSingleByteEncodings()
getWrapper()
hasPcreUnicodeSupport()
isSingleByteEncoding()
isValidUtf8()
registerWrapper()
resetRegisteredWrappers()
unregisterWrapper()
$hasPcreUnicodeSupport
$singleByteEncodings
$wrapperRegistry
Utility class for handling strings of different character encodings using available PHP extensions.
Declared abstract, as we have no need for instantiation.
getRegisteredWrappers() : string[]
string[]
getSingleByteEncodings() : string[]
string[]
getWrapper(string $encoding, string | null $convertEncoding) : \Zend\Stdlib\StringWrapper\StringWrapperInterface
string
Character encoding to support
stringnull
OPTIONAL character encoding to convert in
\Zend\Stdlib\Exception\RuntimeException |
If no wrapper supports given character encodings |
---|
hasPcreUnicodeSupport() : bool
bool
isSingleByteEncoding(string $encoding) : bool
string
bool
isValidUtf8(string $str) : bool
string
bool
registerWrapper(string $wrapper) : void
string
resetRegisteredWrappers() : void
unregisterWrapper(string $wrapper) : void
string
$hasPcreUnicodeSupport : bool
$singleByteEncodings : string[]
$wrapperRegistry : \Zend\Stdlib\StringWrapper\StringWrapperInterface[]