TeeChartPHP
[ class tree: TeeChartPHP ] [ index: TeeChartPHP ] [ all elements ]

Source for file StringBuilder.php

Documentation is available at StringBuilder.php

  1. <?php
  2.  
  3. /**
  4.  * StringBuilder class
  5.  *
  6.  * Description: string utility procedures
  7.  *
  8.  * @author
  9.  * @copyright (c) 1995-2008 by Steema Software SL. All Rights Reserved. <info@steema.com>
  10.  * @version 1.0
  11.  * @package TeeChartPHP
  12.  * @subpackage misc
  13.  * @link http://www.steema.com
  14.  */
  15.  
  16.  class StringBuilder {
  17.  
  18.     private $text "";
  19.  
  20.     public function StringBuilder($value=null{
  21.         $this->text $value;
  22.     }
  23.  
  24.     public function append($value{
  25.         $this->text $this->text $value;
  26.     }
  27.  
  28.     public function toString({
  29.         return $this->text;
  30.     }
  31.  
  32.     public function length({
  33.         return strlen($this->text);
  34.     }
  35.  
  36.     public function delete($start$end{
  37.         $this->text =  substr($this->text0$start.
  38.                substr($this->text,$start $endstrlen($this->text)-($end-$start));
  39.     }
  40. }
  41. ?>

Documentation generated on Wed, 16 Jun 2010 12:08:24 +0200 by phpDocumentor 1.4.1