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

Class: Swift_StreamFilters_ByteArrayReplacementFilter

Source Location: /vendors/swift/classes/Swift/StreamFilters/ByteArrayReplacementFilter.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 19]
Processes bytes as they pass through a buffer and replaces sequences in it.

This stream filter deals with Byte arrays rather than simple strings.




Tags:

author:  Chris Corbyn
filesource:  Source Code for this file


[ Top ]


Class Methods


constructor __construct [line 45]

Swift_StreamFilters_ByteArrayReplacementFilter __construct( array $search, array $replace)

Create a new ByteArrayReplacementFilter with $search and $replace.



Tags:

access:  public


Parameters:

array   $search  
array   $replace  

[ Top ]

method filter [line 127]

array filter( array $buffer, [ $_minReplaces = -1])

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:

array   $buffer  
   $_minReplaces  

[ Top ]

method shouldBuffer [line 116]

boolean shouldBuffer( array $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:

array   $buffer  

[ Top ]


Documentation generated on Mon, 05 Sep 2011 20:32:09 -0500 by phpDocumentor 1.4.3