/php-src/ext/dom/tests/modern/spec/ |
H A D | Document_implementation_createDocumentType.phpt | 30 string(5) "qname" 42 string(5) "qname" 81 string(5) "qname" 93 string(5) "qname" 128 <!DOCTYPE qname PUBLIC "public" ""> 132 string(5) "qname" 144 string(5) "qname" 179 <!DOCTYPE qname SYSTEM "system"> 183 string(5) "qname" 195 string(5) "qname" [all …]
|
H A D | Document_implementation_createDocument.phpt | 14 echo "--- (null, \"qname\") ---\n"; 16 echo $dom->implementation->createDocument(null, "qname")->saveXml(), "\n"; 18 echo "--- (\"\", \"qname\") ---\n"; 20 echo $dom->implementation->createDocument("", "qname")->saveXml(), "\n"; 22 echo "--- (\"urn:a\", \"qname\") ---\n"; 106 --- (null, "qname") --- 108 <qname/> 109 --- ("", "qname") --- 111 <qname/> 112 --- ("urn:a", "qname") --- [all …]
|
H A D | Document_createElementNS.phpt | 16 $elements[] = createElementNS($dom, NULL, "qname", "&hello"); 49 tagName: string(5) "qname" 50 nodeName: string(5) "qname" 54 <qname>&hello</qname>
|
H A D | Document_createAttributeNS.phpt | 10 function testErrorCase($dom, $ns, $qname) { 12 $dom->createAttributeNS($ns, $qname); 15 echo "($ns_readable, \"$qname\"): {$e->getMessage()}\n";
|
/php-src/ext/dom/lexbor/lexbor/dom/interfaces/ |
H A D | element.c | 585 const lxb_char_t *qname, size_t len) in lxb_dom_elements_by_tag_name() argument 588 collection, qname, len); in lxb_dom_elements_by_tag_name() 603 const lxb_char_t *qname, size_t qname_len, in lxb_dom_elements_by_attr() argument 608 collection, qname, qname_len, in lxb_dom_elements_by_attr() 615 const lxb_char_t *qname, size_t qname_len, in lxb_dom_elements_by_attr_begin() argument 620 collection, qname, qname_len, in lxb_dom_elements_by_attr_begin() 627 const lxb_char_t *qname, size_t qname_len, in lxb_dom_elements_by_attr_end() argument 632 collection, qname, qname_len, in lxb_dom_elements_by_attr_end() 639 const lxb_char_t *qname, size_t qname_len, in lxb_dom_elements_by_attr_contain() argument 644 collection, qname, qname_len, in lxb_dom_elements_by_attr_contain()
|
H A D | node.c | 532 const lxb_char_t *qname, size_t qlen) in lxb_dom_node_prepare_by_attr() argument 541 prefix_end = memchr(qname, ':', qlen); in lxb_dom_node_prepare_by_attr() 544 length = prefix_end - qname; in lxb_dom_node_prepare_by_attr() 550 prefix_data = lxb_ns_prefix_data_by_name(document->prefix, qname, qlen); in lxb_dom_node_prepare_by_attr() 563 qname += length; in lxb_dom_node_prepare_by_attr() 567 attr_data = lxb_dom_attr_data_by_local_name(document->attrs, qname, qlen); in lxb_dom_node_prepare_by_attr() 580 const lxb_char_t *qname, size_t qlen) in lxb_dom_node_prepare_by() argument 589 prefix_end = memchr(qname, ':', qlen); in lxb_dom_node_prepare_by() 592 length = prefix_end - qname; in lxb_dom_node_prepare_by() 611 qname += length; in lxb_dom_node_prepare_by() [all …]
|
/php-src/ext/dom/ |
H A D | php_dom.h | 139 int dom_check_qname(char *qname, char **localname, char **prefix, int uri_len, int name_len); 166 int dom_validate_and_extract(const zend_string *namespace, const zend_string *qname, xmlChar **loca… 167 bool dom_match_qualified_name_according_to_spec(const xmlChar *qname, const xmlNode *nodep);
|
H A D | element.c | 1815 char *qname, *qname_tmp = NULL; in PHP_METHOD() local 1823 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|b!", &qname, &qname_length, &force, &force_is_null) … in PHP_METHOD() 1830 if (xmlValidateName(BAD_CAST qname, 0) != 0) { in PHP_METHOD() 1840 qname_tmp = zend_str_tolower_dup_ex(qname, qname_length); in PHP_METHOD() 1842 qname = qname_tmp; in PHP_METHOD() 1847 xmlNodePtr attribute = dom_get_attribute_or_nsdecl(intern, thisp, BAD_CAST qname, qname_length); in PHP_METHOD() 1854 xmlSetNsProp(thisp, NULL, BAD_CAST qname, NULL); in PHP_METHOD() 1859 const xmlChar *split = xmlSplitQName3((const xmlChar *) qname, &len); in PHP_METHOD() 1860 if (split == NULL || strncmp(qname, "xmlns:", len + 1 /* +1 for matching ':' too */) != 0) { in PHP_METHOD() 1862 dom_create_attribute(thisp, qname, ""); in PHP_METHOD() [all …]
|
H A D | php_dom.c | 1832 bool dom_match_qualified_name_according_to_spec(const xmlChar *qname, const xmlNode *nodep) in dom_match_qualified_name_according_to_spec() argument 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() 1854 return xmlStrEqual(node_local, qname); in dom_match_qualified_name_according_to_spec() 2087 if (xmlValidateQName(BAD_CAST ZSTR_VAL(qname), /* allow spaces */ 0) != 0) { in dom_validate_and_extract() 2092 *localName = xmlSplitQName2(BAD_CAST ZSTR_VAL(qname), prefix); in dom_validate_and_extract() 2116 *localName = xmlStrdup(BAD_CAST ZSTR_VAL(qname)); in dom_validate_and_extract() 2137 *localname = (char *)xmlSplitQName2(BAD_CAST qname, (xmlChar **) prefix); in dom_check_qname() 2139 *localname = (char *)xmlStrdup(BAD_CAST qname); in dom_check_qname() [all …]
|
H A D | xml_serializer.c | 471 static int dom_xml_output_qname(xmlOutputBufferPtr out, const dom_qname_pair *qname) in dom_xml_output_qname() argument 473 if (qname->prefix != NULL) { in dom_xml_output_qname() 474 TRY(xmlOutputBufferWriteString(out, (const char *) qname->prefix)); in dom_xml_output_qname() 477 return xmlOutputBufferWriteString(out, (const char *) qname->name); in dom_xml_output_qname()
|
/php-src/ext/simplexml/ |
H A D | simplexml.c | 1665 char *qname, *value = NULL, *nsuri = NULL; in PHP_METHOD() local 1672 &qname, &qname_len, &value, &value_len, &nsuri, &nsuri_len) == FAILURE) { in PHP_METHOD() 1698 localname = xmlSplitQName2((xmlChar *)qname, &prefix); in PHP_METHOD() 1700 localname = xmlStrdup((xmlChar *)qname); in PHP_METHOD() 1731 char *qname, *value = NULL, *nsuri = NULL; in PHP_METHOD() local 1739 &qname, &qname_len, &value, &value_len, &nsuri, &nsuri_len) == FAILURE) { in PHP_METHOD() 1762 localname = xmlSplitQName2((xmlChar *)qname, &prefix); in PHP_METHOD() 1772 localname = (xmlChar *) qname; in PHP_METHOD()
|