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 classes/swiftmailer/lib/classes/Swift/StreamFilters/ByteArrayReplacementFilter.php
Author: Chris Corbyn
Located at classes/swiftmailer/lib/classes/Swift/StreamFilters/ByteArrayReplacementFilter.php
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
|
private
|
$_search
The needle(s) to search for |
|
private
|
$_replace
The replacement(s) to make |
|
private
|
$_index
The Index for searching |
|
private
array
|
$_tree
The Search Tree |
#
array()
|
private
integer
|
$_treeMaxLen
Gives the size of the largest search |
#
0
|
private
|
$_repSize
|