Zend\Stdlib\StringWrapper\Intl
Synopsis
class Intl
extends AbstractStringWrapper
{
- // members
- protected array $encodings;
- // Inherited members from AbstractStringWrapper
- protected string|null $encoding;
- protected string|null $convertEncoding;
- // methods
- public static array getSupportedEncodings()
- public void __construct()
- 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
—
Zend\Stdlib\StringWrapper\string|null
The character encoding working on - $encodings
—
array
List of supported character sets (upper case)
Methods
public
- __construct() — Constructor
- getSupportedEncodings() — Get a list of supported character encodings
- 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