Removed the count_chars funtion (not in use, and exists in PHP4.0b4)
[squirrelmail.git] / functions / strings.php
index c0f23a853f42fb29afe17ec6ff95bc25fe075f4e..44f1d12265a22808a31384c9bc5d3c844a2eabd4 100644 (file)
    function replace_escaped_spaces ($string) {
       return str_replace(" ", " ", $string);
    }
-
-   function count_chars($string) {
-      for ($i = 0; $i < strlen($string); $i++) {
-         $ch = substr($string, $i, 1);
-         $size++;
-         if ($ch == "\\") {
-            $i++;   
-            $ch = substr($string, $i, 1);
-            if ($ch == "n")
-               $i--;
-            if ($ch == "r")
-               $i--;
-         }   
-      }   
-      return $size;
-   }
 ?>