Class Swift_StreamFilters_StringReplacementFilter
Processes bytes as they pass through a buffer and replaces sequences in it.
- Swift_StreamFilters_StringReplacementFilter implements Swift_StreamFilter
Package: Swift
Author: Chris Corbyn
Located at classes/swiftmailer/lib/classes/Swift/StreamFilters/StringReplacementFilter.php
Author: Chris Corbyn
Located at classes/swiftmailer/lib/classes/Swift/StreamFilters/StringReplacementFilter.php
public
|
#
__construct( string|array $search, string|array $replace )
Create a new StringReplacementFilter with $search and $replace. |
public
boolean
|
#
shouldBuffer( string $buffer )
Returns true if based on the buffer passed more bytes should be buffered. |
public
string
|
private
|
$_search
The needle(s) to search for |
|
private
|
$_replace
The replacement(s) to make |