Lines Matching refs:cur

538     xmlCatalogEntryPtr cur;
542 cur = catal;
543 while (cur != NULL) {
544 if (cur->group == cgroup) {
545 switch (cur->type) {
550 if (cur == catal) {
551 cur = cur->children;
557 xmlSetProp(node, BAD_CAST "catalog", cur->value);
564 xmlSetProp(node, BAD_CAST "id", cur->name);
565 if (cur->value != NULL) {
570 cur->value);
572 switch (cur->prefer) {
582 xmlDumpXMLCatalogNode(cur->next, node, doc, ns, cur);
587 xmlSetProp(node, BAD_CAST "publicId", cur->name);
588 xmlSetProp(node, BAD_CAST "uri", cur->value);
593 xmlSetProp(node, BAD_CAST "systemId", cur->name);
594 xmlSetProp(node, BAD_CAST "uri", cur->value);
599 xmlSetProp(node, BAD_CAST "systemIdStartString", cur->name);
600 xmlSetProp(node, BAD_CAST "rewritePrefix", cur->value);
605 xmlSetProp(node, BAD_CAST "publicIdStartString", cur->name);
606 xmlSetProp(node, BAD_CAST "catalog", cur->value);
611 xmlSetProp(node, BAD_CAST "systemIdStartString", cur->name);
612 xmlSetProp(node, BAD_CAST "catalog", cur->value);
617 xmlSetProp(node, BAD_CAST "name", cur->name);
618 xmlSetProp(node, BAD_CAST "uri", cur->value);
623 xmlSetProp(node, BAD_CAST "uriStartString", cur->name);
624 xmlSetProp(node, BAD_CAST "rewritePrefix", cur->value);
629 xmlSetProp(node, BAD_CAST "uriStartString", cur->name);
630 xmlSetProp(node, BAD_CAST "catalog", cur->value);
648 cur = cur->next;
916 inputStream->cur = inputStream->buf->buffer->content;
1081 xmlParseXMLCatalogNodeList(xmlNodePtr cur, xmlCatalogPrefer prefer,
1126 * @cur: the XML node
1140 xmlParseXMLCatalogOneNode(xmlNodePtr cur, xmlCatalogEntryType type,
1152 nameValue = xmlGetProp(cur, attrName);
1154 xmlCatalogErr(ret, cur, XML_CATALOG_MISSING_ATTR,
1159 uriValue = xmlGetProp(cur, uriAttrName);
1161 xmlCatalogErr(ret, cur, XML_CATALOG_MISSING_ATTR,
1173 base = xmlNodeGetBase(cur->doc, cur);
1186 xmlCatalogErr(ret, cur, XML_CATALOG_ENTRY_BROKEN,
1202 * @cur: the XML node
1212 xmlParseXMLCatalogNode(xmlNodePtr cur, xmlCatalogPrefer prefer,
1218 if (cur == NULL)
1220 if (xmlStrEqual(cur->name, BAD_CAST "group")) {
1224 prop = xmlGetProp(cur, BAD_CAST "prefer");
1231 xmlCatalogErr(parent, cur, XML_CATALOG_PREFER_VALUE,
1238 prop = xmlGetProp(cur, BAD_CAST "id");
1239 base = xmlGetNsProp(cur, BAD_CAST "base", XML_XML_NAMESPACE);
1242 } else if (xmlStrEqual(cur->name, BAD_CAST "public")) {
1243 entry = xmlParseXMLCatalogOneNode(cur, XML_CATA_PUBLIC,
1245 } else if (xmlStrEqual(cur->name, BAD_CAST "system")) {
1246 entry = xmlParseXMLCatalogOneNode(cur, XML_CATA_SYSTEM,
1248 } else if (xmlStrEqual(cur->name, BAD_CAST "rewriteSystem")) {
1249 entry = xmlParseXMLCatalogOneNode(cur, XML_CATA_REWRITE_SYSTEM,
1252 } else if (xmlStrEqual(cur->name, BAD_CAST "delegatePublic")) {
1253 entry = xmlParseXMLCatalogOneNode(cur, XML_CATA_DELEGATE_PUBLIC,
1256 } else if (xmlStrEqual(cur->name, BAD_CAST "delegateSystem")) {
1257 entry = xmlParseXMLCatalogOneNode(cur, XML_CATA_DELEGATE_SYSTEM,
1260 } else if (xmlStrEqual(cur->name, BAD_CAST "uri")) {
1261 entry = xmlParseXMLCatalogOneNode(cur, XML_CATA_URI,
1264 } else if (xmlStrEqual(cur->name, BAD_CAST "rewriteURI")) {
1265 entry = xmlParseXMLCatalogOneNode(cur, XML_CATA_REWRITE_URI,
1268 } else if (xmlStrEqual(cur->name, BAD_CAST "delegateURI")) {
1269 entry = xmlParseXMLCatalogOneNode(cur, XML_CATA_DELEGATE_URI,
1272 } else if (xmlStrEqual(cur->name, BAD_CAST "nextCatalog")) {
1273 entry = xmlParseXMLCatalogOneNode(cur, XML_CATA_NEXT_CATALOG,
1296 xmlParseXMLCatalogNodeList(cur->children, prefer, parent, entry);
1305 * @cur: the XML node list of siblings
1315 xmlParseXMLCatalogNodeList(xmlNodePtr cur, xmlCatalogPrefer prefer,
1317 while (cur != NULL) {
1318 if ((cur->ns != NULL) && (cur->ns->href != NULL) &&
1319 (xmlStrEqual(cur->ns->href, XML_CATALOGS_NAMESPACE))) {
1320 xmlParseXMLCatalogNode(cur, prefer, parent, cgroup);
1322 cur = cur->next;
1340 xmlNodePtr cur;
1359 cur = xmlDocGetRootElement(doc);
1360 if ((cur != NULL) && (xmlStrEqual(cur->name, BAD_CAST "catalog")) &&
1361 (cur->ns != NULL) && (cur->ns->href != NULL) &&
1362 (xmlStrEqual(cur->ns->href, XML_CATALOGS_NAMESPACE))) {
1371 prop = xmlGetProp(cur, BAD_CAST "prefer");
1378 xmlCatalogErr(NULL, cur, XML_CATALOG_PREFER_VALUE,
1384 cur = cur->children;
1385 xmlParseXMLCatalogNodeList(cur, prefer, parent, NULL);
1499 xmlCatalogEntryPtr cur;
1521 cur = catal->children;
1525 if (cur != NULL) {
1526 while (cur != NULL) {
1527 if ((orig != NULL) && (cur->type == typ) &&
1528 (xmlStrEqual(orig, cur->name))) {
1532 if (cur->value != NULL)
1533 xmlFree(cur->value);
1534 if (cur->URL != NULL)
1535 xmlFree(cur->URL);
1536 cur->value = xmlStrdup(replace);
1537 cur->URL = xmlStrdup(replace);
1540 if (cur->next == NULL)
1542 cur = cur->next;
1548 if (cur == NULL)
1552 cur->next = xmlNewCatalogEntry(typ, orig, replace,
1556 cur = xmlHashLookup(xmlCatalogXMLFiles, catal->URL);
1557 if (cur != NULL)
1558 cur->children = catal->children;
1576 xmlCatalogEntryPtr cur;
1592 cur = catal->children;
1593 while (cur != NULL) {
1594 if (((cur->name != NULL) && (xmlStrEqual(value, cur->name))) ||
1595 (xmlStrEqual(value, cur->value))) {
1597 if (cur->name != NULL)
1599 "Removing element %s from catalog\n", cur->name);
1602 "Removing element %s from catalog\n", cur->value);
1604 cur->type = XML_CATA_REMOVED;
1606 cur = cur->next;
1629 xmlCatalogEntryPtr cur;
1650 cur = catal;
1652 while (cur != NULL) {
1653 switch (cur->type) {
1655 if (xmlStrEqual(sysID, cur->name)) {
1659 cur->name, cur->URL);
1661 return(xmlStrdup(cur->URL));
1665 len = xmlStrlen(cur->name);
1667 (!xmlStrncmp(sysID, cur->name, len))) {
1669 rewrite = cur;
1673 if (!xmlStrncmp(sysID, cur->name, xmlStrlen(cur->name)))
1682 cur = cur->next;
1702 cur = catal;
1703 while (cur != NULL) {
1704 if ((cur->type == XML_CATA_DELEGATE_SYSTEM) &&
1705 (!xmlStrncmp(sysID, cur->name, xmlStrlen(cur->name)))) {
1707 if (xmlStrEqual(cur->URL, delegates[i]))
1710 cur = cur->next;
1714 delegates[nbList++] = cur->URL;
1716 if (cur->children == NULL) {
1717 xmlFetchXMLCatalogFile(cur);
1719 if (cur->children != NULL) {
1722 "Trying system delegate %s\n", cur->URL);
1724 cur->children, NULL, sysID);
1731 cur = cur->next;
1744 cur = catal;
1746 while (cur != NULL) {
1747 switch (cur->type) {
1749 if (xmlStrEqual(pubID, cur->name)) {
1752 "Found public match %s\n", cur->name);
1754 return(xmlStrdup(cur->URL));
1758 if (!xmlStrncmp(pubID, cur->name, xmlStrlen(cur->name)) &&
1759 (cur->prefer == XML_CATA_PREFER_PUBLIC))
1769 cur = cur->next;
1779 cur = catal;
1780 while (cur != NULL) {
1781 if ((cur->type == XML_CATA_DELEGATE_PUBLIC) &&
1782 (cur->prefer == XML_CATA_PREFER_PUBLIC) &&
1783 (!xmlStrncmp(pubID, cur->name, xmlStrlen(cur->name)))) {
1786 if (xmlStrEqual(cur->URL, delegates[i]))
1789 cur = cur->next;
1793 delegates[nbList++] = cur->URL;
1795 if (cur->children == NULL) {
1796 xmlFetchXMLCatalogFile(cur);
1798 if (cur->children != NULL) {
1801 "Trying public delegate %s\n", cur->URL);
1803 cur->children, pubID, NULL);
1810 cur = cur->next;
1820 cur = catal;
1821 while (cur != NULL) {
1822 if (cur->type == XML_CATA_NEXT_CATALOG) {
1823 if (cur->children == NULL) {
1824 xmlFetchXMLCatalogFile(cur);
1826 if (cur->children != NULL) {
1827 ret = xmlCatalogListXMLResolve(cur->children, pubID, sysID);
1836 cur = cur->next;
1861 xmlCatalogEntryPtr cur;
1883 cur = catal;
1885 while (cur != NULL) {
1886 switch (cur->type) {
1888 if (xmlStrEqual(URI, cur->name)) {
1891 "Found URI match %s\n", cur->name);
1892 return(xmlStrdup(cur->URL));
1896 len = xmlStrlen(cur->name);
1898 (!xmlStrncmp(URI, cur->name, len))) {
1900 rewrite = cur;
1904 if (!xmlStrncmp(URI, cur->name, xmlStrlen(cur->name)))
1913 cur = cur->next;
1932 cur = catal;
1933 while (cur != NULL) {
1934 if (((cur->type == XML_CATA_DELEGATE_SYSTEM) ||
1935 (cur->type == XML_CATA_DELEGATE_URI)) &&
1936 (!xmlStrncmp(URI, cur->name, xmlStrlen(cur->name)))) {
1938 if (xmlStrEqual(cur->URL, delegates[i]))
1941 cur = cur->next;
1945 delegates[nbList++] = cur->URL;
1947 if (cur->children == NULL) {
1948 xmlFetchXMLCatalogFile(cur);
1950 if (cur->children != NULL) {
1953 "Trying URI delegate %s\n", cur->URL);
1955 cur->children, URI);
1960 cur = cur->next;
1968 cur = catal;
1969 while (cur != NULL) {
1970 if (cur->type == XML_CATA_NEXT_CATALOG) {
1971 if (cur->children == NULL) {
1972 xmlFetchXMLCatalogFile(cur);
1974 if (cur->children != NULL) {
1975 ret = xmlCatalogListXMLResolveURI(cur->children, URI);
1980 cur = cur->next;
2140 #define RAW *cur
2141 #define NEXT cur++;
2142 #define SKIP(x) cur += x;
2144 #define SKIP_BLANKS while (IS_BLANK_CH(*cur)) NEXT;
2148 * @cur: the current character
2155 xmlParseSGMLCatalogComment(const xmlChar *cur) {
2156 if ((cur[0] != '-') || (cur[1] != '-'))
2157 return(cur);
2159 while ((cur[0] != 0) && ((cur[0] != '-') || ((cur[1] != '-'))))
2161 if (cur[0] == 0) {
2164 return(cur + 2);
2169 * @cur: the current character
2177 xmlParseSGMLCatalogPubid(const xmlChar *cur, xmlChar **id) {
2200 while (IS_PUBIDCHAR_CH(*cur) || (*cur == '?')) {
2201 if ((*cur == stop) && (stop != ' '))
2203 if ((stop == ' ') && (IS_BLANK_CH(*cur)))
2215 buf[len++] = *cur;
2221 if (!IS_BLANK_CH(*cur)) {
2226 if (*cur != stop) {
2233 return(cur);
2238 * @cur: the current character
2246 xmlParseSGMLCatalogName(const xmlChar *cur, xmlChar **name) {
2256 c = *cur;
2265 cur++;
2266 c = *cur;
2271 return(cur);
2326 const xmlChar *cur = value;
2330 if ((cur == NULL) || (file == NULL))
2334 while ((cur != NULL) && (cur[0] != 0)) {
2336 if (cur[0] == 0)
2338 if ((cur[0] == '-') && (cur[1] == '-')) {
2339 cur = xmlParseSGMLCatalogComment(cur);
2340 if (cur == NULL) {
2349 cur = xmlParseSGMLCatalogName(cur, &name);
2354 if (!IS_BLANK_CH(*cur)) {
2383 cur = xmlParseSGMLCatalogName(cur, &name);
2396 if (*cur == '%')
2402 cur = xmlParseSGMLCatalogName(cur, &name);
2403 if (cur == NULL) {
2407 if (!IS_BLANK_CH(*cur)) {
2412 cur = xmlParseSGMLCatalogPubid(cur, &sysid);
2413 if (cur == NULL) {
2421 cur = xmlParseSGMLCatalogPubid(cur, &name);
2422 if (cur == NULL) {
2441 if (!IS_BLANK_CH(*cur)) {
2446 cur = xmlParseSGMLCatalogPubid(cur, &sysid);
2447 if (cur == NULL) {
2456 cur = xmlParseSGMLCatalogPubid(cur, &sysid);
2457 if (cur == NULL) {
2465 if (cur == NULL) {
2523 if (cur == NULL)
2753 xmlCatalogEntryPtr tmp, cur;
2757 cur = catal->xml;
2758 if (cur == NULL) {
2761 while (cur->next != NULL) cur = cur->next;
2762 cur->next = tmp;
3114 const char *cur, *paths;
3155 cur = catalogs;
3157 while (*cur != '\0') {
3158 while (xmlIsBlank_ch(*cur))
3159 cur++;
3160 if (*cur != 0) {
3161 paths = cur;
3162 while ((*cur != 0) && (!xmlIsBlank_ch(*cur)))
3163 cur++;
3164 path = (char *) xmlStrndup((const xmlChar *)paths, cur - paths);
3232 const char *cur;
3242 cur = pathss;
3243 while (*cur != 0) {
3244 while (xmlIsBlank_ch(*cur)) cur++;
3245 if (*cur != 0) {
3246 paths = cur;
3247 while ((*cur != 0) && (*cur != PATH_SEAPARATOR) && (!xmlIsBlank_ch(*cur)))
3248 cur++;
3249 path = xmlStrndup((const xmlChar *)paths, cur - paths);
3263 while (*cur == PATH_SEAPARATOR)
3264 cur++;