Class Swift_StreamFilters_ByteArrayReplacementFilter
Processes bytes as they pass through a buffer and replaces sequences in it. This stream filter deals with Byte arrays rather than simple strings.
- Swift_StreamFilters_ByteArrayReplacementFilter implements Swift_StreamFilter
Package: Swift
Author: Chris Corbyn
Located at vendors/swiftmailer/lib/classes/Swift/StreamFilters/ByteArrayReplacementFilter.php
Author: Chris Corbyn
Located at vendors/swiftmailer/lib/classes/Swift/StreamFilters/ByteArrayReplacementFilter.php
Methods summary
public
|
#
__construct( array $search, array $replace )
Create a new ByteArrayReplacementFilter with $search and $replace. |
public
boolean
|
#
shouldBuffer( array $buffer )
Returns true if based on the buffer passed more bytes should be buffered. |
public
array
|
#
filter( array $buffer, mixed $_minReplaces = -1 )
Perform the actual replacements on $buffer and return the result. |
Magic methods summary
Properties summary
private
mixed
|
$_search |
#
The needle(s) to search for |
private
mixed
|
$_replace |
#
The replacement(s) to make |
private
mixed
|
$_index |
#
The Index for searching |
private
array
|
$_tree |
#
The Search Tree |
private
integer
|
$_treeMaxLen |
#
Gives the size of the largest search |
private
mixed
|
$_repSize |