Lines Matching refs:trim
725 char *trim = str; in php_json_decode_ex() local
730 while (trim_len && (*trim == ' ' || *trim == '\t' || *trim == '\n' || *trim == '\r')) { in php_json_decode_ex()
731 trim++; in php_json_decode_ex()
736 …while (trim_len && (trim[trim_len - 1] == ' ' || trim[trim_len - 1] == '\t' || trim[trim_len - 1] … in php_json_decode_ex()
742 if (!strncmp(trim, "null", trim_len)) { in php_json_decode_ex()
746 } else if (!strncmp(trim, "true", trim_len)) { in php_json_decode_ex()
749 } else if (trim_len == 5 && !strncmp(trim, "false", trim_len)) { in php_json_decode_ex()
753 if ((type = is_numeric_string_ex(trim, trim_len, &p, &d, 0, &overflow_info)) != 0) { in php_json_decode_ex()
766 for (i = (trim[0] == '-' ? 1 : 0); i < trim_len; i++) { in php_json_decode_ex()
769 if (trim[i] < '0' || trim[i] > '9') { in php_json_decode_ex()
778 RETVAL_STRINGL(trim, trim_len, 1); in php_json_decode_ex()