Optimization:
[squirrelmail.git] / functions / strings.php
index 0b146f008beabfe8488225fa5909c1dcb7950ecd..028c99c25c622a1765330d2e73d7407ff8feb4bb 100644 (file)
@@ -36,30 +36,6 @@ function readShortMailboxName($haystack, $needle) {
     return( $elem );
 }
 
-
-
-/**
- * Returns the index of the first chunk of string $haystack that
- * starts with non-white-space character, starting at position $pos.
- * If there is no such chunk, returns -1.
- */
-function next_pos_minus_white ($haystack, $pos) {
-    $len = strlen($haystack);
-    while ($pos < $len) {
-        /* Get the next character. */
-        $c = substr($haystack, $pos, 1);
-        
-        /* Check the next character. */
-        if (($c != ' ') && ($c != "\t") && ($c != "\n") && ($c != "\r")) {
-            return $pos;
-        }
-
-        /* Increment position in string. */
-        ++$pos;
-    }
-    return -1;
-}
-
 /**
  * Wraps text at $wrap characters
  *