Logo Search packages:      
Sourcecode: d-push version File versions  Download package

Mail_RFC822::_hasUnclosedBracketsSub ( string,
&$  num,

Sub function that is used only by hasUnclosedBrackets().


string$stringThe string to check.
integer&$numThe number of occurences.
string$charThe character to count.
integer The number of occurences of $char in $string, adjusted for backslashes.

Definition at line 396 of file z_RFC822.php.

References _hasUnclosedQuotes().

Referenced by _hasUnclosedBrackets().

        $parts = explode($char, $string);
        for ($i = 0; $i < count($parts); $i++){
            if (substr($parts[$i], -1) == '\\' || $this->_hasUnclosedQuotes($parts[$i]))
            if (isset($parts[$i + 1]))
                $parts[$i + 1] = $parts[$i] . $char . $parts[$i + 1];

        return $num;

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index