Logo Search packages:      
Sourcecode: dojo version File versions  Download package

Services_JSON::reduce_string ( str  ) 

reduce a string by removing leading and trailing comments and whitespace

$str string string value to strip of comments and whitespace
string string value stripped of comments and whitespace private

Definition at line 443 of file json.php.

Referenced by decode().

        $str = preg_replace(array(
                // eliminate single line comments in '// ...' form
                // eliminate multi-line comments in '/* ... */' form, at start of string
                // eliminate multi-line comments in '/* ... */' form, at end of string
            ), '', $str);
        // eliminate extraneous space
        return trim($str);

Generated by  Doxygen 1.6.0   Back to index