Home
last modified time | relevance | path

Searched refs:str_len (Results 1 – 25 of 58) sorted by relevance

123

/PHP-8.3/ext/json/
H A Djson.c186 php_json_parser_init(&parser, return_value, str, str_len, (int)options, (int)depth); in php_json_decode_ex()
204 PHP_JSON_API bool php_json_validate_ex(const char *str, size_t str_len, zend_long options, zend_lon… in php_json_validate_ex() argument
209 …php_json_parser_init_ex(&parser, &tmp, str, str_len, (int)options, (int)depth, parser_validate_met… in php_json_validate_ex()
263 size_t str_len; in PHP_FUNCTION() local
270 Z_PARAM_STRING(str, str_len) in PHP_FUNCTION()
281 if (!str_len) { in PHP_FUNCTION()
309 php_json_decode_ex(return_value, str, str_len, options, depth); in PHP_FUNCTION()
317 size_t str_len; in PHP_FUNCTION() local
322 Z_PARAM_STRING(str, str_len) in PHP_FUNCTION()
334 if (!str_len) { in PHP_FUNCTION()
[all …]
H A Dphp_json.h106 PHP_JSON_API zend_result php_json_decode_ex(zval *return_value, const char *str, size_t str_len, ze…
107 PHP_JSON_API bool php_json_validate_ex(const char *str, size_t str_len, zend_long options, zend_lon…
109 static inline zend_result php_json_decode(zval *return_value, const char *str, size_t str_len, bool… in php_json_decode() argument
111 return php_json_decode_ex(return_value, str, str_len, assoc ? PHP_JSON_OBJECT_AS_ARRAY : 0, depth); in php_json_decode()
H A Dphp_json_parser.h65 size_t str_len,
74 size_t str_len,
H A Dphp_json_scanner.h43 void php_json_scanner_init(php_json_scanner *scanner, const char *str, size_t str_len, int options);
H A Djson_parser.y338 size_t str_len, in php_json_parser_init_ex() argument
344 php_json_scanner_init(&parser->scanner, str, str_len, options); in php_json_parser_init_ex()
354 size_t str_len, in php_json_parser_init() argument
362 str_len, in php_json_parser_init()
/PHP-8.3/ext/intl/
H A Dintl_convertcpp.cpp24 int intl_stringFromChar(UnicodeString &ret, char *str, size_t str_len, UErrorCode *status) in intl_stringFromChar() argument
26 if(UNEXPECTED(str_len > INT32_MAX)) { in intl_stringFromChar()
33 int32_t capacity = (int32_t)str_len + 1; in intl_stringFromChar()
40 str, str_len, U_SENTINEL /* no substitution */, NULL, in intl_stringFromChar()
H A Dintl_convertcpp.h27 int intl_stringFromChar(UnicodeString &ret, char *str, size_t str_len, UErrorCode *status);
/PHP-8.3/ext/intl/grapheme/
H A Dgrapheme_string.c318 size_t str_len; in PHP_FUNCTION() local
342 length = str_len; in PHP_FUNCTION()
352 if ( grapheme_ascii_check((unsigned char *)str, str_len) >= 0 ) { in PHP_FUNCTION()
426 if (length >= (int32_t)str_len) { in PHP_FUNCTION()
612 U8_FWD_1(pstr, break_pos, str_len); in grapheme_extract_charcount_iter()
694 size_t str_len; in PHP_FUNCTION() local
710 lstart += str_len; in PHP_FUNCTION()
757 char *str_end = str + str_len; in PHP_FUNCTION()
770 str_len -= (pstr - str); in PHP_FUNCTION()
777 size_t nsize = MIN(size, str_len); in PHP_FUNCTION()
[all …]
H A Dgrapheme_util.c50 void grapheme_substr_ascii(char *str, size_t str_len, int32_t f, int32_t l, char **sub_str, int32_t… in grapheme_substr_ascii() argument
52 int32_t str_len2 = (int32_t)str_len; /* in order to avoid signed/unsigned problems */ in grapheme_substr_ascii()
55 if(str_len > INT32_MAX) { in grapheme_substr_ascii()
/PHP-8.3/ext/standard/
H A Dsoundex.c28 size_t i, _small, str_len, code, last; in PHP_FUNCTION() local
60 Z_PARAM_STRING(str, str_len) in PHP_FUNCTION()
65 for (i = 0, _small = 0; i < str_len && _small < 4; i++) { in PHP_FUNCTION()
H A Diptc.c309 size_t str_len; in PHP_FUNCTION() local
313 Z_PARAM_STRING(str, str_len) in PHP_FUNCTION()
318 while (inx < str_len) { /* find 1st tag */ in PHP_FUNCTION()
326 while (inx < str_len) { in PHP_FUNCTION()
331 if ((inx + 4) >= str_len) in PHP_FUNCTION()
338 if((inx+6) >= str_len) { in PHP_FUNCTION()
349 if ((len > str_len) || (inx + len) > str_len) { in PHP_FUNCTION()
H A Dcrypt.c194 size_t str_len, salt_in_len = 0; in PHP_FUNCTION() local
198 Z_PARAM_STRING(str, str_len) in PHP_FUNCTION()
212 if ((result = php_crypt(str, (int)str_len, salt, (int)salt_in_len, 0)) == NULL) { in PHP_FUNCTION()
H A Dhtml.h50 PHPAPI unsigned int php_next_utf8_char(const unsigned char *str, size_t str_len, size_t *cursor, ze…
H A Dstring.c1470 size_t str_len; local
2985 memcpy(e, str, str_len);
2986 e += str_len;
3067 memcpy(e, str, str_len);
3068 e += str_len;
3116 memcpy(r, str, str_len);
3151 e += str_len;
4286 size_t str_len; local
4295 if (str_len == 0) {
4303 target = heb_str+str_len;
[all …]
H A Ddir.c277 size_t str_len; in PHP_FUNCTION() local
280 Z_PARAM_PATH(str, str_len) in PHP_FUNCTION()
308 size_t str_len; in PHP_FUNCTION() local
311 Z_PARAM_PATH(str, str_len) in PHP_FUNCTION()
/PHP-8.3/ext/intl/formatter/
H A Dformatter_parse.c37 size_t str_len; in PHP_FUNCTION() local
48 &object, NumberFormatter_ce_ptr, &str, &str_len, &type, &zposition ) == FAILURE ) in PHP_FUNCTION()
62 intl_convert_utf8_to_utf16(&sstr, &sstr_len, str, str_len, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION()
131 size_t str_len; in PHP_FUNCTION() local
139 &object, NumberFormatter_ce_ptr, &str, &str_len, &zcurrency, &zposition ) == FAILURE ) in PHP_FUNCTION()
148 intl_convert_utf8_to_utf16(&sstr, &sstr_len, str, str_len, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION()
/PHP-8.3/ext/standard/tests/filters/
H A Dbug22538.phpt20 $str_len = strlen($str);
22 while (($cnt -= $str_len) > 0) {
25 $cnt = $size - ($str_len + $cnt);
/PHP-8.3/ext/filter/
H A Dlogical_filters.c97 const char *end = str + str_len; in php_filter_parse_int()
149 const char *end = str + str_len; in php_filter_parse_octal()
172 const char *end = str + str_len; in php_filter_parse_hex()
728 const char *end = str + str_len; in _php_filter_validate_ipv4()
771 if (!memchr(str, ':', str_len)) { in _php_filter_validate_ipv6()
776 ipv4 = memchr(str, '.', str_len); in _php_filter_validate_ipv6()
782 if (!_php_filter_validate_ipv4(ipv4, (str_len - (ipv4 - str)), ip4elm)) { in _php_filter_validate_ipv6()
786 str_len = ipv4 - str; /* length excluding ipv4 */ in _php_filter_validate_ipv6()
787 if (str_len < 2) { in _php_filter_validate_ipv6()
793 str_len--; in _php_filter_validate_ipv6()
[all …]
/PHP-8.3/ext/ffi/tests/
H A Dbug78270_1.phpt18 __vectorcall int bug78270(const char *str, size_t str_len);
28 __vectorcall int bug78270(const char *str, size_t str_len);
/PHP-8.3/sapi/fpm/fpm/
H A Dzlog.c417 if (stream->buf.size - stream->len <= str_len && in zlog_stream_buf_copy_cstr()
418 !zlog_stream_buf_alloc_ex(stream, str_len + stream->len)) { in zlog_stream_buf_copy_cstr()
422 memcpy(stream->buf.data + stream->len, str, str_len); in zlog_stream_buf_copy_cstr()
423 stream->len += str_len; in zlog_stream_buf_copy_cstr()
425 return str_len; in zlog_stream_buf_copy_cstr()
478 required_len = reserved_len + str_len; in zlog_stream_buf_append()
483 available_len = str_len; in zlog_stream_buf_append()
504 stream, str + available_len, str_len - available_len); in zlog_stream_buf_append()
751 if (str_len == 0 || stream->full) { in zlog_stream_str()
763 return zlog_stream_buf_append(stream, str, str_len); in zlog_stream_str()
[all …]
/PHP-8.3/main/
H A Dphp_output.h155 #define PHPWRITE(str, str_len) php_output_write((str), (str_len)) argument
156 #define PHPWRITE_H(str, str_len) php_output_write_unbuffered((str), (str_len)) argument
/PHP-8.3/ext/ffi/
H A Dphp_ffi.h275 void zend_ffi_val_number(zend_ffi_val *val, int base, const char *str, size_t str_len);
276 void zend_ffi_val_float_number(zend_ffi_val *val, const char *str, size_t str_len);
277 void zend_ffi_val_string(zend_ffi_val *val, const char *str, size_t str_len);
278 void zend_ffi_val_character(zend_ffi_val *val, const char *str, size_t str_len);
/PHP-8.3/Zend/
H A Dzend_ini_parser.y69 int str_len; in zend_ini_do_op() local
97 str_len = sprintf(str_result, "%d", i_result); in zend_ini_do_op()
98 ZVAL_NEW_STR(result, zend_string_init(str_result, str_len, ZEND_SYSTEM_INI)); in zend_ini_do_op()
291 static inline zend_result convert_to_number(zval *retval, const char *str, const int str_len) in convert_to_number() argument
298 if ((type = is_numeric_string_ex(str, str_len, &lval, &dval, 0, &overflow, NULL)) != 0) { in convert_to_number()
/PHP-8.3/ext/intl/transliterator/
H A Dtransliterator_methods.c270 size_t str_len; in PHP_FUNCTION() local
291 Z_PARAM_STRING(str, str_len) in PHP_FUNCTION()
316 …} else if(zend_parse_parameters( ZEND_NUM_ARGS(), "s|ll", &str, &str_len, &start, &limit) == FAILU… in PHP_FUNCTION()
339 intl_convert_utf8_to_utf16(&ustr, &ustr_len, str, str_len, TRANSLITERATOR_ERROR_CODE_P(to)); in PHP_FUNCTION()
/PHP-8.3/ext/zend_test/
H A Dphp_test.h84 PHP_ZEND_TEST_API int ZEND_FASTCALL bug78270(const char *str, size_t str_len);

Completed in 51 milliseconds

123