Source for file strip.php
Documentation is available at strip.php
* Strips the spaces at the beginning and end of each line and also the line breaks
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from the use of this software.
* This file is released under the LGPL
* "GNU Lesser General Public License"
* More information can be found here:
* {@link http://www.gnu.org/copyleft/lesser.html}
* @copyright Copyright (c) 2008, Jordi Boggiano
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
public static function preProcessing(Dwoo_Compiler $compiler, array $params, $prepend, $append, $type)
public static function postProcessing(Dwoo_Compiler $compiler, array $params, $prepend, $append, $content)
$params =
$compiler->getCompiledParams($params);
$content =
preg_replace(array("/\n/","/\r/",'/(<\?(?:php)?|<%)\s*/'), array('','','$1 '), preg_replace('#^\s*(.+?)\s*$#m', '$1', $content));
Documentation generated on Sun, 03 Aug 2008 15:12:46 +0200 by phpDocumentor 1.4.0