PHP Class StripPhpComments, symfony-1.4
(if you have more complex Php parsing needs, use a real lexer).
Since this class heavily relies on the single char read function,
you are reccomended to make it work on top of a buffered reader.
Afficher le fichier
Open project: vjousse/symfony-1.4
Class Usage Examples
Méthodes publiques
Méthode |
Description |
|
chain ( Reader $reader ) : a |
Creates a new StripPhpComments using the passed in
Reader for instantiation. |
|
read ( $len = null ) : the |
Returns the stream without Php comments. |
|
readChar ( ) |
*
Returns the next character in the filtered stream, not including
Php comments. |
|
Method Details
Creates a new StripPhpComments using the passed in
Reader for instantiation.
public chain ( Reader $reader ) : a |
$reader |
Reader |
|
Résultat |
a |
new filter based on this configuration, but filtering
the specified reader |
Returns the stream without Php comments.
public read ( $len = null ) : the |
Résultat |
the |
resulting stream, or -1
if the end of the resulting stream has been reached |
readChar()
public méthode
*
Returns the next character in the filtered stream, not including
Php comments.