Home | History | Annotate | Download | only in libxml2

Lines Matching defs:table

632 /* TODO: use hash table for accesses to elem and attribute definitions */
1155 * @content: An element table
1158 * This will dump the content of the element table as an XML DTD definition
1229 * @content: An element table
1245 * @content: An element table
1388 xmlElementTablePtr table;
1447 * Create the Element table if needed.
1449 table = (xmlElementTablePtr) dtd->elements;
1450 if (table == NULL) {
1455 table = xmlHashCreateDict(0, dict);
1456 dtd->elements = (void *) table;
1458 if (table == NULL) {
1460 "xmlAddElementDecl: Table creation failed!\n");
1486 ret = xmlHashLookup2(table, name, ns);
1539 if (xmlHashAddEntry2(table, name, ns, ret)) {
1598 * @table: An element table
1600 * Deallocate the memory used by an element hash table.
1603 xmlFreeElementTable(xmlElementTablePtr table) {
1604 xmlHashFree(table, (xmlHashDeallocator) xmlFreeElement);
1644 * @table: An element table
1646 * Build a copy of an element table.
1651 xmlCopyElementTable(xmlElementTablePtr table) {
1652 return((xmlElementTablePtr) xmlHashCopy(table,
1661 * @elem: An element table
1720 * @elem: An element table
1734 * @table: An element table
1736 * This will dump the content of the element table as an XML DTD definition
1739 xmlDumpElementTable(xmlBufferPtr buf, xmlElementTablePtr table) {
1740 if ((buf == NULL) || (table == NULL))
1742 xmlHashScan(table, (xmlHashScanner) xmlDumpElementDeclScan, buf);
1864 xmlAttributeTablePtr table;
1872 table = (xmlAttributeTablePtr) dtd->attributes;
1873 if (table == NULL)
1877 xmlHashScan3(table, NULL, NULL, elem,
1980 xmlAttributeTablePtr table;
2057 * Create the Attribute table if needed.
2059 table = (xmlAttributeTablePtr) dtd->attributes;
2060 if (table == NULL) {
2061 table = xmlHashCreateDict(0, dict);
2062 dtd->attributes = (void *) table;
2064 if (table == NULL) {
2066 "xmlAddAttributeDecl: Table creation failed!\n");
2113 if (xmlHashAddEntry3(table, ret->name, ret->prefix, ret->elem, ret) < 0) {
2190 * @table: An attribute table
2192 * Deallocate the memory used by an entities hash table.
2195 xmlFreeAttributeTable(xmlAttributeTablePtr table) {
2196 xmlHashFree(table, (xmlHashDeallocator) xmlFreeAttribute);
2235 * @table: An attribute table
2237 * Build a copy of an attribute table.
2242 xmlCopyAttributeTable(xmlAttributeTablePtr table) {
2243 return((xmlAttributeTablePtr) xmlHashCopy(table,
2346 * @table: An attribute table
2348 * This will dump the content of the attribute table as an XML DTD definition
2351 xmlDumpAttributeTable(xmlBufferPtr buf, xmlAttributeTablePtr table) {
2352 if ((buf == NULL) || (table == NULL))
2354 xmlHashScan(table, (xmlHashScanner) xmlDumpAttributeDeclScan, buf);
2399 xmlNotationTablePtr table;
2412 * Create the Notation table if needed.
2414 table = (xmlNotationTablePtr) dtd->notations;
2415 if (table == NULL) {
2420 dtd->notations = table = xmlHashCreateDict(0, dict);
2422 if (table == NULL) {
2424 "xmlAddNotationDecl: Table creation failed!\n");
2448 if (xmlHashAddEntry(table, name, ret)) {
2462 * @table: An notation table
2464 * Deallocate the memory used by an entities hash table.
2467 xmlFreeNotationTable(xmlNotationTablePtr table) {
2468 xmlHashFree(table, (xmlHashDeallocator) xmlFreeNotation);
2506 * @table: A notation table
2508 * Build a copy of a notation table.
2513 xmlCopyNotationTable(xmlNotationTablePtr table) {
2514 return((xmlNotationTablePtr) xmlHashCopy(table,
2562 * @table: A notation table
2564 * This will dump the content of the notation table as an XML DTD definition
2567 xmlDumpNotationTable(xmlBufferPtr buf, xmlNotationTablePtr table) {
2568 if ((buf == NULL) || (table == NULL))
2570 xmlHashScan(table, (xmlHashScanner) xmlDumpNotationDeclScan, buf);
2629 xmlIDTablePtr table;
2642 * Create the ID table if needed.
2644 table = (xmlIDTablePtr) doc->ids;
2645 if (table == NULL) {
2646 doc->ids = table = xmlHashCreateDict(0, doc->dict);
2648 if (table == NULL) {
2650 "xmlAddID: Table creation failed!\n");
2680 if (xmlHashAddEntry(table, value, ret) < 0) {
2701 * @table: An id table
2703 * Deallocate the memory used by an ID hash table.
2706 xmlFreeIDTable(xmlIDTablePtr table) {
2707 xmlHashFree(table, (xmlHashDeallocator) xmlFreeID);
2779 * Remove the given attribute from the ID table maintained internally.
2785 xmlIDTablePtr table;
2791 table = (xmlIDTablePtr) doc->ids;
2792 if (table == NULL)
2800 id = xmlHashLookup(table, ID);
2805 xmlHashRemoveEntry(table, ID, (xmlHashDeallocator) xmlFreeID);
2822 xmlIDTablePtr table;
2833 table = (xmlIDTablePtr) doc->ids;
2834 if (table == NULL)
2837 id = xmlHashLookup(table, ID);
2950 xmlRefTablePtr table;
2964 * Create the Ref table if needed.
2966 table = (xmlRefTablePtr) doc->refs;
2967 if (table == NULL) {
2968 doc->refs = table = xmlHashCreateDict(0, doc->dict);
2970 if (table == NULL) {
2972 "xmlAddRef: Table creation failed!\n");
3005 if (NULL == (ref_list = xmlHashLookup(table, value))) {
3012 if (xmlHashAddEntry(table, value, ref_list) < 0) {
3040 * @table: An ref table
3042 * Deallocate the memory used by an Ref hash table.
3045 xmlFreeRefTable(xmlRefTablePtr table) {
3046 xmlHashFree(table, (xmlHashDeallocator) xmlFreeRefList);
3097 * Remove the given attribute from the Ref table maintained internally.
3104 xmlRefTablePtr table;
3110 table = (xmlRefTablePtr) doc->refs;
3111 if (table == NULL)
3119 ref_list = xmlHashLookup(table, ID);
3143 xmlHashUpdateEntry(table, ID, NULL, (xmlHashDeallocator)
3160 xmlRefTablePtr table;
3170 table = (xmlRefTablePtr) doc->refs;
3171 if (table == NULL)
3174 return (xmlHashLookup(table, ID));
3195 xmlElementTablePtr table;
3202 table = (xmlElementTablePtr) dtd->elements;
3207 cur = xmlHashLookup2(table, name, prefix);
3225 xmlElementTablePtr table;
3239 * Create the Element table if needed.
3241 table = (xmlElementTablePtr) dtd->elements;
3242 if (table == NULL) {
3243 table = xmlHashCreateDict(0, dict);
3244 dtd->elements = (void *) table;
3246 if (table == NULL) {
3247 xmlVErrMemory(NULL, "element table allocation failed");
3251 table = (xmlElementTablePtr) dtd->elements;
3256 cur = xmlHashLookup2(table, name, prefix);
3273 xmlHashAddEntry2(table, name, prefix, cur);
3294 xmlElementTablePtr table;
3298 table = (xmlElementTablePtr) dtd->elements;
3300 return(xmlHashLookup2(table, name, prefix));
3317 xmlAttributeTablePtr table;
3324 table = (xmlAttributeTablePtr) dtd->attributes;
3325 if (table == NULL)
3331 cur = xmlHashLookup3(table, uqname, prefix, elem);
3335 cur = xmlHashLookup3(table, name, NULL, elem);
3355 xmlAttributeTablePtr table;
3359 table = (xmlAttributeTablePtr) dtd->attributes;
3361 return(xmlHashLookup3(table, name, prefix, elem));
3376 xmlNotationTablePtr table;
3380 table = (xmlNotationTablePtr) dtd->notations;
3382 return(xmlHashLookup(table, name));
4206 xmlAttributeTablePtr table;
4214 table = (xmlAttributeTablePtr) doc->intSubset->attributes;
4215 xmlHashScan3(table, NULL, NULL, attr->elem, (xmlHashScanner)
6611 xmlRefTablePtr table;
6630 table = (xmlRefTablePtr) doc->refs;
6633 xmlHashScan(table, (xmlHashScanner) xmlValidateCheckRefCallback, ctxt);
6796 xmlAttributeTablePtr table;
6806 table = (xmlAttributeTablePtr) dtd->attributes;
6807 xmlHashScan(table, (xmlHashScanner) xmlValidateAttributeCallback, ctxt);
6816 table = (xmlAttributeTablePtr) dtd->attributes;
6817 xmlHashScan(table, (xmlHashScanner) xmlValidateAttributeCallback, ctxt);