/[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.15 by sysadm, Mon Apr 7 06:26:44 2025 UTC Revision 1.17 by sysadm, Sun Apr 27 04:32:05 2025 UTC
# Line 1  Line 1 
1  <?  <?php
2  function str_length(string $str) : string  function str_length(string $str) : string
3  {  {
4          $len = strlen($str);          $len = strlen($str);
# Line 38  function split_line(string $str, string Line 38  function split_line(string $str, string
38          {          {
39                  return $str;                  return $str;
40          }          }
41            
42          $result = "";          $result = "";
43          $len = strlen($str);          $len = strlen($str);
44          $prefix_len = str_length($prefix);          $prefix_len = str_length($prefix);
# Line 56  function split_line(string $str, string Line 56  function split_line(string $str, string
56                  {                  {
57                          continue;                          continue;
58                  }                  }
59                                    
60                  if ($c == "\n")                  if ($c == "\n")
61                  {                  {
62                          if ($lines_count + 1 >= $lines_limit)                          if ($lines_count + 1 >= $lines_limit)


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

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