• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/pyobjc-45/2.6/pyobjc/pyobjc-core/libxml2-src/

Lines Matching +defs:orig +defs:file +defs:name

71 #define XML_XML_DEFAULT_CATALOG "file:///etc/xml/catalog"
74 #define XML_SGML_DEFAULT_CATALOG "file:///etc/sgml/catalog"
79 static char XML_XML_DEFAULT_CATALOG[256] = "file:///etc/xml/catalog";
135 xmlChar *name;
259 * @name: name of the entry
270 xmlNewCatalogEntry(xmlCatalogEntryType type, const xmlChar *name,
286 normid = xmlCatalogNormalizePublic(name);
288 name = (*normid != 0 ? normid : NULL);
290 if (name != NULL)
291 ret->name = xmlStrdup(name);
293 ret->name = NULL;
327 * Entries stored in the file hash must be deallocated
328 * only by the file hash cleaner !
334 if (ret->name != NULL)
336 "Free catalog entry %s\n", ret->name);
345 if (ret->name != NULL)
346 xmlFree(ret->name);
376 * catalog file hash.
454 * @out: the file.
496 fprintf(out, "%s", (const char *) entry->name); break;
504 fprintf(out, "\"%s\"", entry->name); break;
564 xmlSetProp(node, BAD_CAST "id", cur->name);
587 xmlSetProp(node, BAD_CAST "publicId", cur->name);
593 xmlSetProp(node, BAD_CAST "systemId", cur->name);
599 xmlSetProp(node, BAD_CAST "systemIdStartString", cur->name);
605 xmlSetProp(node, BAD_CAST "publicIdStartString", cur->name);
611 xmlSetProp(node, BAD_CAST "systemIdStartString", cur->name);
617 xmlSetProp(node, BAD_CAST "name", cur->name);
623 xmlSetProp(node, BAD_CAST "uriStartString", cur->name);
629 xmlSetProp(node, BAD_CAST "uriStartString", cur->name);
755 xmlHashRemoveEntry(catal->sgml, entry->name,
763 xmlHashRemoveEntry(catal->sgml, entry->name, NULL);
877 * parse an XML file and build a tree. It's like xmlParseFile()
947 * @filename: a file path
949 * Load a file content into memory.
1092 * @name: the name
1094 * lookup the internal type associated to an XML catalog entry name
1096 * Returns the type associated with that name
1099 xmlGetXMLCatalogEntryType(const xmlChar *name) {
1101 if (xmlStrEqual(name, (const xmlChar *) "system"))
1103 else if (xmlStrEqual(name, (const xmlChar *) "public"))
1105 else if (xmlStrEqual(name, (const xmlChar *) "rewriteSystem"))
1107 else if (xmlStrEqual(name, (const xmlChar *) "delegatePublic"))
1109 else if (xmlStrEqual(name, (const xmlChar *) "delegateSystem"))
1111 else if (xmlStrEqual(name, (const xmlChar *) "uri"))
1113 else if (xmlStrEqual(name, (const xmlChar *) "rewriteURI"))
1115 else if (xmlStrEqual(name, (const xmlChar *) "delegateURI"))
1117 else if (xmlStrEqual(name, (const xmlChar *) "nextCatalog"))
1119 else if (xmlStrEqual(name, (const xmlChar *) "catalog"))
1128 * @name: the name of the node
1141 const xmlChar *name, const xmlChar *attrName,
1155 "%s entry lacks '%s'\n", name, attrName, NULL);
1162 "%s entry lacks '%s'\n", name, uriAttrName, NULL);
1179 "Found %s: '%s' '%s'\n", name, nameValue, URL);
1182 "Found %s: '%s'\n", name, URL);
1187 "%s entry '%s' broken ?: %s\n", name, uriAttrName, uriValue);
1220 if (xmlStrEqual(cur->name, BAD_CAST "group")) {
1242 } else if (xmlStrEqual(cur->name, BAD_CAST "public")) {
1245 } else if (xmlStrEqual(cur->name, BAD_CAST "system")) {
1248 } else if (xmlStrEqual(cur->name, BAD_CAST "rewriteSystem")) {
1252 } else if (xmlStrEqual(cur->name, BAD_CAST "delegatePublic")) {
1256 } else if (xmlStrEqual(cur->name, BAD_CAST "delegateSystem")) {
1260 } else if (xmlStrEqual(cur->name, BAD_CAST "uri")) {
1262 BAD_CAST "uri", BAD_CAST "name",
1264 } else if (xmlStrEqual(cur->name, BAD_CAST "rewriteURI")) {
1268 } else if (xmlStrEqual(cur->name, BAD_CAST "delegateURI")) {
1272 } else if (xmlStrEqual(cur->name, BAD_CAST "nextCatalog")) {
1332 * Parses the catalog file to extract the XML tree and then analyze the
1360 if ((cur != NULL) && (xmlStrEqual(cur->name, BAD_CAST "catalog")) &&
1432 "Found %s in file hash\n", catal->URL);
1444 "%s not found in file hash\n", catal->URL);
1471 "%s added to file hash\n", catal->URL);
1488 * @orig: the system, public or prefix to match (or NULL)
1498 const xmlChar *orig, const xmlChar *replace) {
1527 if ((orig != NULL) && (cur->type == typ) &&
1528 (xmlStrEqual(orig, cur->name))) {
1549 catal->children = xmlNewCatalogEntry(typ, orig, replace,
1552 cur->next = xmlNewCatalogEntry(typ, orig, replace,
1594 if (((cur->name != NULL) && (xmlStrEqual(value, cur->name))) ||
1597 if (cur->name != NULL)
1599 "Removing element %s from catalog\n", cur->name);
1639 catal->name, NULL, NULL);
1655 if (xmlStrEqual(sysID, cur->name)) {
1659 cur->name, cur->URL);
1665 len = xmlStrlen(cur->name);
1667 (!xmlStrncmp(sysID, cur->name, len))) {
1673 if (!xmlStrncmp(sysID, cur->name, xmlStrlen(cur->name)))
1687 "Using rewriting rule %s\n", rewrite->name);
1705 (!xmlStrncmp(sysID, cur->name, xmlStrlen(cur->name)))) {
1749 if (xmlStrEqual(pubID, cur->name)) {
1752 "Found public match %s\n", cur->name);
1758 if (!xmlStrncmp(pubID, cur->name, xmlStrlen(cur->name)) &&
1783 (!xmlStrncmp(pubID, cur->name, xmlStrlen(cur->name)))) {
1876 catal->name, NULL, NULL);
1888 if (xmlStrEqual(URI, cur->name)) {
1891 "Found URI match %s\n", cur->name);
1896 len = xmlStrlen(cur->name);
1898 (!xmlStrncmp(URI, cur->name, len))) {
1904 if (!xmlStrncmp(URI, cur->name, xmlStrlen(cur->name)))
1918 "Using rewriting rule %s\n", rewrite->name);
1936 (!xmlStrncmp(URI, cur->name, xmlStrlen(cur->name)))) {
2239 * @name: the return location
2241 * Parse an SGML catalog name
2243 * Returns new current character and store the value in @name
2246 xmlParseSGMLCatalogName(const xmlChar *cur, xmlChar **name) {
2251 *name = NULL;
2270 *name = xmlStrndup(buf, len);
2276 * @name: the entry name
2278 * Get the Catalog entry type for a given SGML Catalog name
2283 xmlGetSGMLCatalogEntryType(const xmlChar *name) {
2285 if (xmlStrEqual(name, (const xmlChar *) "SYSTEM"))
2287 else if (xmlStrEqual(name, (const xmlChar *) "PUBLIC"))
2289 else if (xmlStrEqual(name, (const xmlChar *) "DELEGATE"))
2291 else if (xmlStrEqual(name, (const xmlChar *) "ENTITY"))
2293 else if (xmlStrEqual(name, (const xmlChar *) "DOCTYPE"))
2295 else if (xmlStrEqual(name, (const xmlChar *) "LINKTYPE"))
2297 else if (xmlStrEqual(name, (const xmlChar *) "NOTATION"))
2299 else if (xmlStrEqual(name, (const xmlChar *) "SGMLDECL"))
2301 else if (xmlStrEqual(name, (const xmlChar *) "DOCUMENT"))
2303 else if (xmlStrEqual(name, (const xmlChar *) "CATALOG"))
2305 else if (xmlStrEqual(name, (const xmlChar *) "BASE"))
2314 * @file: the filepath for the catalog
2325 const char *file, int super) {
2330 if ((cur == NULL) || (file == NULL))
2332 base = xmlStrdup((const xmlChar *) file);
2346 xmlChar *name = NULL;
2349 cur = xmlParseSGMLCatalogName(cur, &name);
2350 if (name == NULL) {
2359 if (xmlStrEqual(name, (const xmlChar *) "SYSTEM"))
2361 else if (xmlStrEqual(name, (const xmlChar *) "PUBLIC"))
2363 else if (xmlStrEqual(name, (const xmlChar *) "DELEGATE"))
2365 else if (xmlStrEqual(name, (const xmlChar *) "ENTITY"))
2367 else if (xmlStrEqual(name, (const xmlChar *) "DOCTYPE"))
2369 else if (xmlStrEqual(name, (const xmlChar *) "LINKTYPE"))
2371 else if (xmlStrEqual(name, (const xmlChar *) "NOTATION"))
2373 else if (xmlStrEqual(name, (const xmlChar *) "SGMLDECL"))
2375 else if (xmlStrEqual(name, (const xmlChar *) "DOCUMENT"))
2377 else if (xmlStrEqual(name, (const xmlChar *) "CATALOG"))
2379 else if (xmlStrEqual(name, (const xmlChar *) "BASE"))
2381 else if (xmlStrEqual(name, (const xmlChar *) "OVERRIDE")) {
2382 xmlFree(name);
2383 cur = xmlParseSGMLCatalogName(cur, &name);
2384 if (name == NULL) {
2388 xmlFree(name);
2391 xmlFree(name);
2392 name = NULL;
2402 cur = xmlParseSGMLCatalogName(cur, &name);
2421 cur = xmlParseSGMLCatalogPubid(cur, &name);
2429 normid = xmlCatalogNormalizePublic(name);
2431 if (name != NULL)
2432 xmlFree(name);
2434 name = normid;
2437 name = NULL;
2466 if (name != NULL)
2467 xmlFree(name);
2483 entry = xmlNewCatalogEntry(type, name, filename,
2485 res = xmlHashAddEntry(catal->sgml, name, entry);
2515 if (name != NULL)
2516 xmlFree(name);
2632 * @filename: a file path
2668 * @filename: a file path
2725 * @filename: a file path
2926 * @out: the file.
2928 * Dump the given catalog to the given file.
2948 * @orig: the system, public or prefix to match
2958 const xmlChar * orig, const xmlChar * replace)
2966 res = xmlAddXMLCatalog(catal->xml, type, orig, replace);
2974 entry = xmlNewCatalogEntry(cattype, orig, replace, NULL,
2978 res = xmlHashAddEntry(catal->sgml, orig, entry);
3186 * @filename: a file path
3381 * @out: the file.
3383 * Dump all the global catalog content to the given file.
3400 * @orig: the system, public or prefix to match
3411 xmlCatalogAdd(const xmlChar *type, const xmlChar *orig, const xmlChar *replace) {
3427 orig, NULL, xmlCatalogDefaultPrefer, NULL);
3433 res = xmlACatalogAdd(xmlDefaultCatalog, type, orig, replace);