Swift
[ class tree: Swift ] [ index: Swift ] [ all elements ]

Class: Swift_StreamFilters_StringReplacementFilter

Source Location: /vendors/swift/classes/Swift/StreamFilters/StringReplacementFilter.php

Class Overview


Processes bytes as they pass through a buffer and replaces sequences in it.


Author(s):

  • Chris Corbyn

Implements interfaces:

Methods



Class Details

[line 18]
Processes bytes as they pass through a buffer and replaces sequences in it.



Tags:

author:  Chris Corbyn
filesource:  Source Code for this file


[ Top ]


Class Methods


constructor __construct [line 32]

Swift_StreamFilters_StringReplacementFilter __construct( string|array $search, string|array $replace)

Create a new StringReplacementFilter with $search and $replace.



Tags:

access:  public


Parameters:

string|array   $search  
string|array   $replace  

[ Top ]

method filter [line 61]

string filter( string $buffer)

Perform the actual replacements on $buffer and return the result.



Tags:

access:  public



Implementation of:
Swift_StreamFilter::filter()
Filters $buffer and returns the changes.

Parameters:

string   $buffer  

[ Top ]

method shouldBuffer [line 43]

boolean shouldBuffer( string $buffer)

Returns true if based on the buffer passed more bytes should be buffered.



Tags:

access:  public



Implementation of:
Swift_StreamFilter::shouldBuffer()
Based on the buffer given, this returns true if more buffering is needed.

Parameters:

string   $buffer  

[ Top ]


Documentation generated on Mon, 05 Sep 2011 20:34:40 -0500 by phpDocumentor 1.4.3