From cf17c1e37d8aed955635b01da576051703fc6435 Mon Sep 17 00:00:00 2001 From: philippe_mingo Date: Sat, 23 Mar 2002 16:30:46 +0000 Subject: [PATCH] Optimization: Function next_pos_minus_white is not used into SM core, not SM official plugins. It's code will go into a "not currently in use" repository". git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2625 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/strings.php | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/functions/strings.php b/functions/strings.php index 0b146f00..028c99c2 100644 --- a/functions/strings.php +++ b/functions/strings.php @@ -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 * -- 2.25.1