Zend\Stdlib\StringWrapper\Native
Synopsis
class Native
extends AbstractStringWrapper
{
- // members
- protected string $encoding;
- // Inherited members from AbstractStringWrapper
- protected string|null $encoding;
- protected string|null $convertEncoding;
- // methods
- public static bool isSupported()
- public static array getSupportedEncodings()
- public StringWrapperInterface setEncoding()
- public int|false strlen()
- public string|false substr()
- public int|false strpos()
- // Inherited methods from AbstractStringWrapper
- 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
Members
protected
- $convertEncoding
—
Zend\Stdlib\StringWrapper\string|null
An optionally character encoding to convert to - $encoding
—
string
The character encoding working on (overwritten to change defaut encoding) - $encoding
—
Zend\Stdlib\StringWrapper\string|null
The character encoding working on
Methods
public
- getSupportedEncodings() — Get a list of supported character encodings
- 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
- strlen() — Returns the length of the given string
- strpos() — Find the position of the first occurrence of a substring in a string
- substr() — Returns the portion of string specified by the start and length parameters
Inherited from Zend\Stdlib\StringWrapper\AbstractStringWrapper
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