1858. Class

1858.1. Zend\Stdlib\StringWrapper\AbstractStringWrapper

1858.1.1. Methods

1858.1.1.1. isSupported

isSupported()

Check if the given character encoding is supported by this wrapper and the character encoding to convert to is also supported.

Parameters:
  • string
  • string|null

1858.1.1.2. setEncoding

setEncoding()

Set character encoding working with and convert to

Parameters:
  • string – The character encoding to work with
  • string|null – The character encoding to convert to
Return type:

StringWrapperInterface

1858.1.1.3. getEncoding

getEncoding()

Get the defined character encoding to work with

Return type:string
Throws :ExceptionLogicException If no encoding was defined

1858.1.1.4. getConvertEncoding

getConvertEncoding()

Get the defined character encoding to convert to

Return type:string|null

1858.1.1.5. convert

convert()

Convert a string from defined character encoding to the defined convert encoding

Parameters:
  • string
  • boolean
Return type:

string|false

1858.1.1.6. wordWrap

wordWrap()

Wraps a string to a given number of characters

Parameters:
  • string
  • integer
  • string
  • boolean
Return type:

string|false

1858.1.1.7. strPad

strPad()

Pad a string to a certain length with another string

Parameters:
  • string
  • integer
  • string
  • integer
Return type:

string