Zend\Stdlib\StringWrapper\AbstractStringWrapper
Synopsis
class AbstractStringWrapper
implements
StringWrapperInterface
{
- // members
- protected string|null $encoding;
- protected string|null $convertEncoding;
- // methods
- public static bool isSupported()
- public StringWrapperInterface setEncoding()
- public string getEncoding()
- public string|null getConvertEncoding()
- public string|false convert()
- public string|false wordWrap()
- public string strPad()
Hierarchy
Extended by
- Zend\Stdlib\StringWrapper\MbString
- Zend\Stdlib\StringWrapper\Native
- Zend\Stdlib\StringWrapper\Intl
- Zend\Stdlib\StringWrapper\Iconv
Implements
Members
protected
- $convertEncoding
—
Zend\Stdlib\StringWrapper\string|null
An optionally character encoding to convert to - $encoding
—
Zend\Stdlib\StringWrapper\string|null
The character encoding working on
Methods
public
- convert() — Convert a string from defined character encoding to the defined convert encoding
- getConvertEncoding() — Get the defined character encoding to convert to
- getEncoding() — Get the defined character encoding to work with
- isSupported() — Check if the given character encoding is supported by this wrapper and the character encoding to convert to is also supported.
- setEncoding() — Set character encoding working with and convert to
- strPad() — Pad a string to a certain length with another string
- wordWrap() — Wraps a string to a given number of characters