/[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.21 by sysadm, Sat Oct 18 14:15:35 2025 UTC Revision 1.22 by sysadm, Thu Oct 30 11:19:14 2025 UTC
# Line 31  function str_length(string $str) : int Line 31  function str_length(string $str) : int
31          return $ret;          return $ret;
32  }  }
33    
34  function split_line(string $str, string $prefix = "", int $width = 76, int $lines_limit = PHP_INT_MAX, string $end_of_line = "\n") : string  function split_line(string $str, string $prefix = "", int $width = PHP_INT_MAX, int $lines_limit = PHP_INT_MAX, string $end_of_line = "\n") : string
35  {  {
36          if ($width <= 0)          if ($width <= 0)
37          {          {
38                  return $str;                  $width = PHP_INT_MAX;
39          }          }
40    
41          $result = "";          $result = "";


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

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