Ignore:
Timestamp:
2012/02/07 11:38:09 (12 years ago)
Author:
Seasoft
Message:

#1447 (未使用パラメータを整理)

  • LINE_LIMIT_SIZE

#1607 (未使用定義の削除)

  • sfPutBR
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/util/SC_Utils.php

    r21450 r21452  
    824824    } 
    825825 
    826     /* 文字列に強制的に改行を入れる */ 
    827     function sfPutBR($str, $size) { 
    828         $i = 0; 
    829         $cnt = 0; 
    830         $line = array(); 
    831         $ret = ""; 
    832  
    833         while ($str[$i] != "") { 
    834             $line[$cnt].=$str[$i]; 
    835             $i++; 
    836             if (strlen($line[$cnt]) > $size) { 
    837                 $line[$cnt].="<br />"; 
    838                 $cnt++; 
    839             } 
    840         } 
    841  
    842         foreach ($line as $val) { 
    843             $ret.=$val; 
    844         } 
    845         return $ret; 
    846     } 
    847  
    848826    // 二回以上繰り返されているスラッシュ[/]を一つに変換する。 
    849827    function sfRmDupSlash($istr){ 
Note: See TracChangeset for help on using the changeset viewer.