/[LeafOK_CVS]/fenglin/lib/str_process.inc.php
ViewVC logotype

Diff of /fenglin/lib/str_process.inc.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 by sysadm, Fri Jun 25 06:49:15 2004 UTC Revision 1.2 by sysadm, Fri Jun 25 08:26:49 2004 UTC
# Line 1  Line 1 
1  <?  <?
2    
3  function split_line($str,$width=75,$pre="")  function split_line($str,$pre="",$width=75)
4  {  {
5          $lines = array();          $lines = array();
6          $lines_count = 0;          $lines_count = 0;
# Line 38  function split_line($str,$width=75,$pre= Line 38  function split_line($str,$width=75,$pre=
38          return $result;          return $result;
39  }  }
40    
41  function add_colon($str,$width=75)  function str_process($str,$pre="",$width=75)
42  {  {
43          $result = "";          $result = "";
44                    
# Line 46  function add_colon($str,$width=75) Line 46  function add_colon($str,$width=75)
46    
47          foreach($lines as $line)          foreach($lines as $line)
48          {          {
49                  $result .= split_line($line,$width,": ");                  $result .= split_line($line,$pre,$width);
50          }          }
51                    
52          return $result;          return $result;


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1