Lines Matching refs:prefix
67 const xmlChar *prefix, *name; member
165 const xmlChar *prefix, in dom_xml_local_prefix_map_add() argument
170 ZEND_ASSERT(prefix != NULL); in dom_xml_local_prefix_map_add()
171 zend_hash_str_add_ptr(&map->ht, (const char *) prefix, prefix_len, (void *) ns); in dom_xml_local_prefix_map_add()
176 const xmlChar *prefix, in dom_xml_local_prefix_map_find() argument
180 ZEND_ASSERT(prefix != NULL); in dom_xml_local_prefix_map_find()
181 return zend_hash_str_find_ptr(&map->ht, (const char *) prefix, prefix_len); in dom_xml_local_prefix_map_find()
186 const xmlChar *prefix, 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()
200 const xmlChar *prefix, 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()
210 const xmlChar *prefix, in dom_xml_ns_prefix_map_add() argument
217 ZEND_ASSERT(prefix != NULL); in dom_xml_ns_prefix_map_add()
253 DOM_Z_OWNED(&tmp, prefix); in dom_xml_ns_prefix_map_add()
255 DOM_Z_UNOWNED(&tmp, prefix); in dom_xml_ns_prefix_map_add()
272 … zend_always_inline bool dom_prefix_in_candidate_list(const HashTable *list, const xmlChar *prefix) in dom_prefix_in_candidate_list() argument
274 ZEND_ASSERT(prefix != NULL); in dom_prefix_in_candidate_list()
283 if (dom_xml_str_equals_treat_nulls_as_empty(BAD_CAST tmp, prefix)) { in dom_prefix_in_candidate_list()
294 const xmlChar *prefix, in dom_prefix_found_in_ns_prefix_map() argument
301 return dom_prefix_in_candidate_list(list, prefix); in dom_prefix_found_in_ns_prefix_map()
334 if (attr->ns->prefix == NULL) { in dom_recording_the_namespace_information()
411 const xmlChar *prefix = NULL; in dom_retrieve_a_preferred_prefix_string() local
415 ZEND_HASH_PACKED_REVERSE_FOREACH_PTR(list, prefix) { in dom_retrieve_a_preferred_prefix_string()
416 ZEND_ASSERT(prefix != NULL); in dom_retrieve_a_preferred_prefix_string()
420 …if (!dom_xml_local_prefix_map_conflicts(local_prefixes_map, prefix, strlen((const char *) prefix),… in dom_retrieve_a_preferred_prefix_string()
421 if (dom_xml_str_equals_treat_nulls_as_empty(preferred_prefix, prefix)) { in dom_retrieve_a_preferred_prefix_string()
422 return prefix; in dom_retrieve_a_preferred_prefix_string()
426 last_non_conflicting_in_list = prefix; in dom_retrieve_a_preferred_prefix_string()
473 if (qname->prefix != NULL) { in dom_xml_output_qname()
474 TRY(xmlOutputBufferWriteString(out, (const char *) qname->prefix)); in dom_xml_output_qname()
625 if (attr->ns != NULL && attr->ns->prefix != NULL) { in dom_xml_serialize_attribute_node()
626 TRY(xmlOutputBufferWriteString(out, (const char *) attr->ns->prefix)); in dom_xml_serialize_attribute_node()
759 attr->ns->prefix, in dom_xml_serialize_attributes()
774 if (ignore_namespace_definition_attribute && attr->ns->prefix == NULL) { in dom_xml_serialize_attributes()
781 if (attr->ns->prefix != NULL) { in dom_xml_serialize_attributes()
795 if (attr->ns->prefix != NULL && strcmp((const char *) attr->ns->prefix, "xmlns") == 0) { in dom_xml_serialize_attributes()
808 if (attr->ns->prefix == NULL in dom_xml_serialize_attributes()
809 …al_prefix_map_contains(local_prefixes_map, attr->ns->prefix, strlen((const char *) attr->ns->prefi… in dom_xml_serialize_attributes()
820 candidate_prefix = attr->ns->prefix; in dom_xml_serialize_attributes()
967 qualified_name.prefix = BAD_CAST "xml"; in dom_xml_serialize_element_node()
981 const xmlChar *prefix = element->ns == NULL ? NULL : element->ns->prefix; in dom_xml_serialize_element_node() local
986 if (prefix == NULL && dom_xml_str_equals_treat_nulls_as_empty(ns, local_default_namespace)) { in dom_xml_serialize_element_node()
990 …candidate_prefix = dom_retrieve_a_preferred_prefix_string(&map, &local_prefixes_map, prefix, ns, n… in dom_xml_serialize_element_node()
994 if (prefix != NULL && strcmp((const char *) prefix, "xmlns") == 0) { in dom_xml_serialize_element_node()
1001 candidate_prefix = prefix; in dom_xml_serialize_element_node()
1007 qualified_name.prefix = candidate_prefix; in dom_xml_serialize_element_node()
1024 else if (prefix != NULL) { in dom_xml_serialize_element_node()
1028 size_t prefix_length = strlen((const char *) prefix); in dom_xml_serialize_element_node()
1029 if (dom_xml_local_prefix_map_contains(&local_prefixes_map, prefix, prefix_length)) { in dom_xml_serialize_element_node()
1030 prefix = dom_xml_generate_a_prefix(&map, &local_prefixes_map, ns, ns_length, prefix_index); in dom_xml_serialize_element_node()
1033 dom_xml_ns_prefix_map_add(&map, prefix, false, ns, ns_length); in dom_xml_serialize_element_node()
1035 dom_xml_local_prefix_map_add(&local_prefixes_map, prefix, prefix_length, ns); in dom_xml_serialize_element_node()
1039 qualified_name.prefix = prefix; in dom_xml_serialize_element_node()
1047 TRY_OR_CLEANUP(xmlOutputBufferWriteString(ctx->out, (const char *) prefix)); in dom_xml_serialize_element_node()