File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 1010if  (!function_exists ('bear_str_to_lower ' )) {
1111	function  bear_str_to_lower ($ str
1212	{
13+ 		if  ($ strnull ) {
14+ 			return  null ;
15+ 		}
1316		if  (function_exists ('mb_strtolower ' )) {
1417			return  mb_strtolower ($ str'UTF-8 ' );
1518		}
@@ -20,6 +23,9 @@ function bear_str_to_lower($str)
2023if  (!function_exists ('bear_str_to_upper ' )) {
2124	function  bear_str_to_upper ($ str
2225	{
26+ 		if  ($ strnull ) {
27+ 			return  null ;
28+ 		}
2329		if  (function_exists ('mb_strtoupper ' )) {
2430			return  mb_strtoupper ($ str'UTF-8 ' );
2531		}
@@ -30,6 +36,9 @@ function bear_str_to_upper($str)
3036if  (!function_exists ('bear_str_length ' )) {
3137	function  bear_str_length ($ str
3238	{
39+ 		if  ($ strnull ) {
40+ 			return  null ;
41+ 		}
3342		if  (function_exists ('mb_strlen ' )) {
3443			return  mb_strlen ($ str
3544		}
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments