Utility class for handling strings of different character encodings using available PHP extensions.
Declared abstract, as we have no need for instantiation.
Get registered wrapper classes
Return type: | string[] |
---|
Register a string wrapper class
Parameters: | string – |
---|---|
Return type: | void |
Unregister a string wrapper class
Parameters: | string – |
---|---|
Return type: | void |
Reset all registered wrappers so the default wrappers will be used
Return type: | void |
---|
Get the first string wrapper supporting the given character encoding and supports to convert into the given convert encoding.
Parameters: |
|
---|---|
Return type: | StringWrapperInterface |
Throws : | ExceptionRuntimeException If no wrapper supports given character encodings |
Get a list of all known single-byte character encodings
Return type: | string[] |
---|
Check if a given encoding is a known single-byte character encoding
Parameters: | string – |
---|---|
Return type: | boolean |