[ 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/ -> ReplaceRegexp.php (sommaire)

(pas de description)

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

Définit 1 class

ReplaceRegexp:: (5 méthodes):
  createRegexp()
  setRegexps()
  getRegexps()
  read()
  chain()


Classe: ReplaceRegexp  - X-Ref

Performs a regexp find/replace on stream.
<p>
Example:<br>
<pre>
<replaceregexp>
<regexp pattern="\r\n" replace="\n"/>
<regexp pattern="(\w+)\.xml" replace="\1.php" ignoreCase="true"/>
</replaceregexp>
</pre>

createRegexp()   X-Ref
Creator method handles nested <regexp> tags.

return: RegularExpression

setRegexps($regexps)   X-Ref
Sets the current regexps.
(Used when, e.g., cloning/chaining the method.)

param: array RegularExpression[]

getRegexps()   X-Ref
Gets the current regexps.
(Used when, e.g., cloning/chaining the method.)

return: array RegularExpression[]

read($len = null)   X-Ref
Returns the filtered stream.
The original stream is first read in fully, and the regex replace is performed.

param: int $len Required $len for Reader compliance.
return: mixed The filtered stream, or -1 if the end of the resulting stream has been reached.

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

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



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