[ Index ]
 

Code source de Symfony 1.0.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/vendor/phing/filters/ -> LineContainsRegexp.php (sommaire)

(pas de description)

Poids: 179 lignes (6 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

LineContainsRegexp:: (6 méthodes):
  read()
  createRegexp()
  setRegexps()
  getRegexps()
  chain()
  _initialize()


Classe: LineContainsRegexp  - X-Ref

Filter which includes only those lines that contain the user-specified
regular expression matching strings.

Example:
<pre><linecontainsregexp>
<regexp pattern="foo*">
</linecontainsregexp></pre>

Or:

<pre><filterreader classname="phing.filters.LineContainsRegExp">
<param type="regexp" value="foo*"/>
</filterreader></pre>

This will fetch all those lines that contain the pattern <code>foo</code>

read($len = null)   X-Ref
Returns all lines in a buffer that contain specified strings.

return: mixed buffer, -1 on EOF

createRegexp()   X-Ref
Adds a <code>regexp</code> element.

return: object regExp The <code>regexp</code> element added.

setRegexps($regexps)   X-Ref
Sets the vector of regular expressions which must be contained within
a line read from the original stream in order for it to match this
filter.

param: regexps An array of regular expressions which must be contained

getRegexps()   X-Ref
Returns the array of regular expressions which must be contained within
a line read from the original stream in order for it to match this
filter.

return: array The array of regular expressions which must be contained within

chain(Reader $reader)   X-Ref
Creates a new LineContainsRegExp using the passed in
Reader for instantiation.

param: object A Reader object providing the underlying stream.
return: object A new filter based on this configuration, but filtering

_initialize()   X-Ref
Parses parameters to add user defined regular expressions.




Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7