/php-src/ext/standard/ |
H A D | uniqid.c | 47 size_t prefix_len = 0; in PHP_FUNCTION() local 52 Z_PARAM_STRING(prefix, prefix_len) in PHP_FUNCTION()
|
H A D | browscap.c | 39 uint8_t prefix_len; member 394 pos = entry->prefix_len = browscap_compute_prefix_len(pattern); in php_browscap_parser_cb() 542 size_t len = entry->prefix_len; in browscap_get_minimum_length() 637 cur = ZSTR_VAL(agent_name) + entry->prefix_len; in browser_reg_compare() 661 ZSTR_VAL(agent_name) + entry->prefix_len, in browser_reg_compare() 663 ZSTR_VAL(pattern_lc) + entry->prefix_len, in browser_reg_compare() 669 …size_t curr_len = entry->prefix_len; /* Start from the prefix because the prefix is free of wildca… in browser_reg_compare() 764 for (size_t i = 0; i < entry->prefix_len; i++) { in PHP_FUNCTION()
|
H A D | http.c | 235 size_t prefix_len = 0; in PHP_FUNCTION() local 243 Z_PARAM_STRING(prefix, prefix_len) in PHP_FUNCTION() 253 …php_url_encode_hash_ex(HASH_OF(formdata), &formstr, prefix, prefix_len, /* key_prefix */ NULL, (Z_… in PHP_FUNCTION()
|
H A D | file.c | 684 size_t dir_len, prefix_len; in PHP_FUNCTION() local 691 Z_PARAM_PATH(prefix, prefix_len) in PHP_FUNCTION() 694 p = php_basename(prefix, prefix_len, NULL, 0); in PHP_FUNCTION()
|
/php-src/ext/dom/ |
H A D | namespace_compat.c | 143 …string(php_dom_libxml_ns_mapper *mapper, const xmlChar *prefix, size_t prefix_len, zend_string *ur… in php_dom_libxml_ns_mapper_get_ns_raw_prefix_string() argument 146 if (prefix_len == 0) { in php_dom_libxml_ns_mapper_get_ns_raw_prefix_string() 150 zend_string *prefix_str = zend_string_init((const char *) prefix, prefix_len, false); in php_dom_libxml_ns_mapper_get_ns_raw_prefix_string() 157 …trings_ex(php_dom_libxml_ns_mapper *mapper, const char *prefix, size_t prefix_len, const char *uri… in php_dom_libxml_ns_mapper_get_ns_raw_strings_ex() argument 159 zend_string *prefix_str = zend_string_init(prefix, prefix_len, false); in php_dom_libxml_ns_mapper_get_ns_raw_strings_ex() 193 size_t prefix_len; in php_dom_libxml_ns_mapper_store_and_normalize_parsed_ns() local 196 prefix_len = 0; in php_dom_libxml_ns_mapper_store_and_normalize_parsed_ns() 198 prefix_len = xmlStrlen(ns->prefix); in php_dom_libxml_ns_mapper_store_and_normalize_parsed_ns() 201 zval *zv = zend_hash_str_find_ptr(prefix_map, prefix, prefix_len); in php_dom_libxml_ns_mapper_store_and_normalize_parsed_ns() 208 zend_hash_str_add_new(prefix_map, prefix, prefix_len, &new_zv); in php_dom_libxml_ns_mapper_store_and_normalize_parsed_ns()
|
H A D | namespace_compat.h | 49 …string(php_dom_libxml_ns_mapper *mapper, const xmlChar *prefix, size_t prefix_len, zend_string *ur…
|
H A D | xml_serializer.c | 166 size_t prefix_len, in dom_xml_local_prefix_map_add() argument 171 zend_hash_str_add_ptr(&map->ht, (const char *) prefix, prefix_len, (void *) ns); in dom_xml_local_prefix_map_add() 177 size_t prefix_len in dom_xml_local_prefix_map_find() argument 181 return zend_hash_str_find_ptr(&map->ht, (const char *) prefix, prefix_len); in dom_xml_local_prefix_map_find() 187 size_t prefix_len, in dom_xml_local_prefix_map_conflicts() argument 191 const xmlChar *result = dom_xml_local_prefix_map_find(map, prefix, prefix_len); in dom_xml_local_prefix_map_conflicts() 201 size_t prefix_len in dom_xml_local_prefix_map_contains() argument 204 return dom_xml_local_prefix_map_find(map, prefix, prefix_len) != NULL; in dom_xml_local_prefix_map_contains()
|
H A D | xpath.c | 214 size_t prefix_len, ns_uri_len; in PHP_METHOD() local 217 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "ss", &prefix, &prefix_len, &ns_uri, &ns_uri_len) == FA… in PHP_METHOD()
|
H A D | php_dom.h | 161 zend_string *dom_node_concatenated_name_helper(size_t name_len, const char *name, size_t prefix_len…
|
H A D | node.c | 37 zend_string *dom_node_concatenated_name_helper(size_t name_len, const char *name, size_t prefix_len… in dom_node_concatenated_name_helper() argument 40 zend_string *str = zend_string_safe_alloc(1, name_len, prefix_len + 1, false); in dom_node_concatenated_name_helper() 41 memcpy(ZSTR_VAL(str), prefix, prefix_len); in dom_node_concatenated_name_helper() 42 ZSTR_VAL(str)[prefix_len] = ':'; in dom_node_concatenated_name_helper() 43 memcpy(ZSTR_VAL(str) + prefix_len + 1, name, name_len + 1 /* include \0 */); in dom_node_concatenated_name_helper()
|
H A D | php_dom.c | 1843 size_t prefix_len = strlen(prefix); in dom_match_qualified_name_according_to_spec() local 1844 if (strncmp((const char *) qname, prefix, prefix_len) != 0) { in dom_match_qualified_name_according_to_spec() 1848 if (qname[prefix_len] != ':') { in dom_match_qualified_name_according_to_spec() 1852 return xmlStrEqual(qname + prefix_len + 1, node_local); in dom_match_qualified_name_according_to_spec()
|
/php-src/ext/dom/lexbor/lexbor/html/ |
H A D | tree_res.h | 24 size_t prefix_len; member
|
H A D | tree.c | 631 if (adjust->prefix_len != 0) { in lxb_html_tree_adjust_foreign_attributes() 640 lname_length = adjust->name_len - adjust->prefix_len - 1; in lxb_html_tree_adjust_foreign_attributes() 651 (const lxb_char_t *) adjust->prefix, adjust->prefix_len); in lxb_html_tree_adjust_foreign_attributes()
|
/php-src/ext/dom/lexbor/lexbor/dom/interfaces/ |
H A D | element.c | 120 const lxb_char_t *prefix, size_t prefix_len, in lxb_dom_element_qualified_name_set() argument 126 if (prefix != NULL && prefix_len != 0) { in lxb_dom_element_qualified_name_set() 127 key = lexbor_malloc(prefix_len + lname_len + 2); in lxb_dom_element_qualified_name_set() 132 memcpy(key, prefix, prefix_len); in lxb_dom_element_qualified_name_set() 133 memcpy(&key[prefix_len + 1], lname, lname_len); in lxb_dom_element_qualified_name_set() 135 lname_len = prefix_len + lname_len + 1; in lxb_dom_element_qualified_name_set() 137 key[prefix_len] = ':'; in lxb_dom_element_qualified_name_set() 161 const lxb_char_t *prefix, size_t prefix_len, in lxb_dom_element_create() argument 202 ns_prefix = lxb_ns_prefix_append(document->prefix, prefix, prefix_len); in lxb_dom_element_create() 209 status = lxb_dom_element_qualified_name_set(element, prefix, prefix_len, in lxb_dom_element_create()
|
H A D | element.h | 73 const lxb_char_t *prefix, size_t prefix_len,
|
/php-src/Zend/ |
H A D | zend_constants.c | 428 int prefix_len = colon - name; in zend_get_constant_ex() local 429 size_t const_name_len = name_len - prefix_len - 1; in zend_get_constant_ex() 436 lcname_len = prefix_len + 1 + const_name_len; in zend_get_constant_ex() 438 zend_str_tolower_copy(lcname, name, prefix_len); in zend_get_constant_ex() 440 lcname[prefix_len] = '\\'; in zend_get_constant_ex() 441 memcpy(lcname + prefix_len + 1, constant_name, const_name_len + 1); in zend_get_constant_ex()
|
/php-src/ext/xmlwriter/ |
H A D | php_xmlwriter.c | 307 size_t name_len, prefix_len, uri_len; in PHP_FUNCTION() local 312 &prefix, &prefix_len, &name, &name_len, &uri, &uri_len) == FAILURE) { in PHP_FUNCTION() 353 size_t name_len, prefix_len, uri_len, content_len; in PHP_FUNCTION() local 358 &prefix, &prefix_len, &name, &name_len, &uri, &uri_len, &content, &content_len) == FAILURE) { in PHP_FUNCTION() 383 size_t name_len, prefix_len, uri_len; in PHP_FUNCTION() local 388 &prefix, &prefix_len, &name, &name_len, &uri, &uri_len) == FAILURE) { in PHP_FUNCTION() 451 size_t name_len, prefix_len, uri_len, content_len; in PHP_FUNCTION() local 456 &prefix, &prefix_len, &name, &name_len, &uri, &uri_len, &content, &content_len) == FAILURE) { in PHP_FUNCTION()
|
/php-src/sapi/fpm/fpm/ |
H A D | zlog.c | 276 size_t prefix_len = strlen(prefix); in zlog_msg_ex() local 279 zlog_stream_init_internal(&stream, flags, msg_len + prefix_len, 0); in zlog_msg_ex() 281 zlog_stream_str(&stream, prefix, prefix_len); in zlog_msg_ex() 456 stream->buf.data + stream->prefix_len, stream->len - stream->prefix_len); in zlog_stream_buf_flush() 699 stream->len = stream->prefix_len = len; in zlog_stream_prefix_ex()
|
H A D | zlog.h | 84 size_t prefix_len; member
|
/php-src/main/ |
H A D | SAPI.c | 299 static inline char *get_default_content_type(uint32_t prefix_len, uint32_t *len) in get_default_content_type() argument 322 *len = prefix_len + mimetype_len + sizeof("; charset=") - 1 + charset_len; in get_default_content_type() 324 p = content_type + prefix_len; in get_default_content_type() 329 *len = prefix_len + mimetype_len; in get_default_content_type() 331 memcpy(content_type + prefix_len, mimetype, mimetype_len + 1); in get_default_content_type()
|
/php-src/ext/dom/lexbor/lexbor/html/tree/insertion_mode/ |
H A D | foreign_content.c | 18 const lxb_char_t *prefix, size_t prefix_len,
|
/php-src/ext/openssl/ |
H A D | xp_ssl.c | 421 ptrdiff_t prefix_len; in php_openssl_matches_wildcard_name() local 434 prefix_len = wildcard - certname; in php_openssl_matches_wildcard_name() 435 if (prefix_len && strncasecmp(subjectname, certname, prefix_len) != 0) { in php_openssl_matches_wildcard_name() 446 memchr(subjectname + prefix_len, '.', subject_len - suffix_len - prefix_len) == NULL; in php_openssl_matches_wildcard_name()
|
/php-src/ext/simplexml/ |
H A D | simplexml.c | 1332 size_t prefix_len, ns_uri_len; in PHP_METHOD() local 1335 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "ss", &prefix, &prefix_len, &ns_uri, &ns_uri_len) == FA… in PHP_METHOD()
|
/php-src/ext/phar/ |
H A D | phar_object.c | 3636 size_t prefix_len = (ZSTR_VAL(file_name)[0] == '/') + sizeof(".phar")-1; in phar_add_file() local 3637 char next_char = ZSTR_VAL(file_name)[prefix_len]; in phar_add_file()
|