Home
last modified time | relevance | path

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

123

/php-src/ext/json/
H A Djson.c184 php_json_parser_init(&parser, return_value, str, str_len, (int)options, (int)depth); in php_json_decode_ex()
202 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
207 …php_json_parser_init_ex(&parser, &tmp, str, str_len, (int)options, (int)depth, parser_validate_met… in php_json_validate_ex()
261 size_t str_len; in PHP_FUNCTION() local
268 Z_PARAM_STRING(str, str_len) in PHP_FUNCTION()
279 if (!str_len) { in PHP_FUNCTION()
307 php_json_decode_ex(return_value, str, str_len, options, depth); in PHP_FUNCTION()
315 size_t str_len; in PHP_FUNCTION() local
320 Z_PARAM_STRING(str, str_len) in PHP_FUNCTION()
332 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-src/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-src/ext/standard/
H A Dsoundex.c26 size_t i, _small, str_len, code, last; in PHP_FUNCTION() local
58 Z_PARAM_STRING(str, str_len) in PHP_FUNCTION()
63 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.c205 size_t str_len, salt_in_len = 0; in PHP_FUNCTION() local
209 Z_PARAM_STRING(str, str_len) in PHP_FUNCTION()
223 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 Ddir.c221 size_t str_len; in PHP_FUNCTION() local
224 Z_PARAM_PATH(str, str_len) in PHP_FUNCTION()
252 size_t str_len; in PHP_FUNCTION() local
255 Z_PARAM_PATH(str, str_len) in PHP_FUNCTION()
/php-src/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-src/ext/intl/grapheme/
H A Dgrapheme_string.c330 size_t str_len; in PHP_FUNCTION() local
343 Z_PARAM_STRING(str, str_len) in PHP_FUNCTION()
357 length = str_len; in PHP_FUNCTION()
441 if (length >= (int32_t)str_len) { in PHP_FUNCTION()
630 U8_FWD_1(pstr, break_pos, str_len); in grapheme_extract_charcount_iter()
712 size_t str_len; in PHP_FUNCTION() local
724 Z_PARAM_STRING(str, str_len) in PHP_FUNCTION()
733 lstart += str_len; in PHP_FUNCTION()
780 char *str_end = str + str_len; in PHP_FUNCTION()
793 str_len -= (pstr - str); in PHP_FUNCTION()
[all …]
H A Dgrapheme_util.c48 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
50 int32_t str_len2 = (int32_t)str_len; /* in order to avoid signed/unsigned problems */ in grapheme_substr_ascii()
53 if(str_len > INT32_MAX) { in grapheme_substr_ascii()
H A Dgrapheme_util.h25 void grapheme_substr_ascii(char *str, size_t str_len, int32_t f, int32_t l, char **sub_str, int32_t…
/php-src/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-src/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-src/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-src/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-src/main/
H A Dphp_output.h157 #define PHPWRITE(str, str_len) php_output_write((str), (str_len)) argument
158 #define PHPWRITE_H(str, str_len) php_output_write_unbuffered((str), (str_len)) argument
/php-src/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-src/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-src/ext/intl/transliterator/
H A Dtransliterator_methods.c267 size_t str_len; in PHP_FUNCTION() local
288 Z_PARAM_STRING(str, str_len) in PHP_FUNCTION()
313 …} else if(zend_parse_parameters( ZEND_NUM_ARGS(), "s|ll", &str, &str_len, &start, &limit) == FAILU… in PHP_FUNCTION()
336 intl_convert_utf8_to_utf16(&ustr, &ustr_len, str, str_len, TRANSLITERATOR_ERROR_CODE_P(to)); in PHP_FUNCTION()
/php-src/ext/zend_test/
H A Dphp_test.h97 PHP_ZEND_TEST_API int ZEND_FASTCALL bug78270(const char *str, size_t str_len);

Completed in 48 milliseconds

123