Source for file wordwrap.php

Documentation is available at wordwrap.php

  1. <?php
  2.  
  3. /**
  4.  * Wraps a text at the given line length
  5.  * <pre>
  6.  *  * value : the text to wrap
  7.  *  * length : maximum line length
  8.  *  * break : the character(s) to use to break the line
  9.  *  * cut : if true, the line is cut at the exact length instead of breaking at the nearest space
  10.  * </pre>
  11.  * This software is provided 'as-is', without any express or implied warranty.
  12.  * In no event will the authors be held liable for any damages arising from the use of this software.
  13.  *
  14.  * This file is released under the LGPL
  15.  * "GNU Lesser General Public License"
  16.  * More information can be found here:
  17.  * {@link http://www.gnu.org/copyleft/lesser.html}
  18.  *
  19.  * @author     Jordi Boggiano <j.boggiano@seld.be>
  20.  * @copyright  Copyright (c) 2008, Jordi Boggiano
  21.  * @license    http://www.gnu.org/copyleft/lesser.html  GNU Lesser General Public License
  22.  * @link       http://dwoo.org/
  23.  * @version    0.9.1
  24.  * @date       2008-05-30
  25.  * @package    Dwoo
  26.  */
  27. function Dwoo_Plugin_wordwrap_compile(Dwoo_Compiler $compiler$value$length=80$break="\n"$cut=false)
  28. {
  29.     return 'wordwrap('.$value.','.$length.','.$break.','.$cut.')';
  30. }

Documentation generated on Sun, 07 Sep 2008 23:58:01 +0200 by phpDocumentor 1.4.0