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 wa-system/vendors/swift/classes/Swift/StreamFilters/ByteArrayReplacementFilter.php
Author: Chris Corbyn
Located at wa-system/vendors/swift/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
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 | array() |
#
The Search Tree |
private
integer
|
$_treeMaxLen | 0 |
#
Gives the size of the largest search |
private
mixed
|
$_repSize |
|