\Swift_StreamFilters_StringReplacementFilter
Processes bytes as they pass through a buffer and replaces sequences in it.
- Author: Chris Corbyn
Synopsis
class Swift_StreamFilters_StringReplacementFilter
implements
Swift_StreamFilter
{
- // methods
- public void __construct()
- public boolean shouldBuffer()
- public string filter()
Hierarchy
Implements
Members
private
-
$_replace
The replacement(s) to make -
$_search
The needle(s) to search for
Methods
public
- __construct() — Create a new StringReplacementFilter with $search and $replace.
- filter() — Perform the actual replacements on $buffer and return the result.
- shouldBuffer() — Returns true if based on the buffer passed more bytes should be buffered.