Lines Matching refs:str
453 function reduce_string($str) argument
455 $str = preg_replace(array(
466 ), '', $str);
469 return trim($str);
475 * @param string $str JSON-formatted string
484 function decode($str) argument
486 $str = $this->reduce_string($str);
488 switch (strtolower($str)) {
501 if (is_numeric($str)) {
509 return ((float)$str == (integer)$str)
510 ? (integer)$str
511 : (float)$str;
513 } elseif (preg_match('/^("|\').*(\1)$/s', $str, $m) && $m[1] == $m[2]) {
515 $delim = substr($str, 0, 1);
516 $chrs = substr($str, 1, -1);
610 } elseif (preg_match('/^\[.*\]$/s', $str) || preg_match('/^\{.*\}$/s', $str)) {
613 if ($str{0} == '[') {
630 $chrs = substr($str, 1, -1);