• Home
  • Raw
  • Download

Lines Matching refs:cur

591 xhtmlNodeDumpOutput(xmlSaveCtxtPtr ctxt, xmlNodePtr cur);
593 static void xmlNodeDumpOutputInternal(xmlSaveCtxtPtr ctxt, xmlNodePtr cur);
594 void xmlNsListDumpOutput(xmlOutputBufferPtr buf, xmlNsPtr cur);
595 static int xmlDocContentDumpOutput(xmlSaveCtxtPtr ctxt, xmlDocPtr cur);
630 xmlNsDumpOutput(xmlOutputBufferPtr buf, xmlNsPtr cur, xmlSaveCtxtPtr ctxt) { in xmlNsDumpOutput() argument
631 if ((cur == NULL) || (buf == NULL)) return; in xmlNsDumpOutput()
632 if ((cur->type == XML_LOCAL_NAMESPACE) && (cur->href != NULL)) { in xmlNsDumpOutput()
633 if (xmlStrEqual(cur->prefix, BAD_CAST "xml")) in xmlNsDumpOutput()
642 if (cur->prefix != NULL) { in xmlNsDumpOutput()
644 xmlOutputBufferWriteString(buf, (const char *)cur->prefix); in xmlNsDumpOutput()
648 xmlBufWriteQuotedString(buf->buffer, cur->href); in xmlNsDumpOutput()
661 xmlNsDumpOutputCtxt(xmlSaveCtxtPtr ctxt, xmlNsPtr cur) { in xmlNsDumpOutputCtxt() argument
662 xmlNsDumpOutput(ctxt->buf, cur, ctxt); in xmlNsDumpOutputCtxt()
674 xmlNsListDumpOutputCtxt(xmlSaveCtxtPtr ctxt, xmlNsPtr cur) { in xmlNsListDumpOutputCtxt() argument
675 while (cur != NULL) { in xmlNsListDumpOutputCtxt()
676 xmlNsDumpOutput(ctxt->buf, cur, ctxt); in xmlNsListDumpOutputCtxt()
677 cur = cur->next; in xmlNsListDumpOutputCtxt()
690 xmlNsListDumpOutput(xmlOutputBufferPtr buf, xmlNsPtr cur) { in xmlNsListDumpOutput() argument
691 while (cur != NULL) { in xmlNsListDumpOutput()
692 xmlNsDumpOutput(buf, cur, NULL); in xmlNsListDumpOutput()
693 cur = cur->next; in xmlNsListDumpOutput()
707 xmlNodePtr cur; in xmlDtdDumpOutput() local
745 for (cur = dtd->children; cur != NULL; cur = cur->next) { in xmlDtdDumpOutput()
746 xmlNodeDumpOutputInternal(ctxt, cur); in xmlDtdDumpOutput()
761 xmlAttrDumpOutput(xmlSaveCtxtPtr ctxt, xmlAttrPtr cur) { in xmlAttrDumpOutput() argument
764 if (cur == NULL) return; in xmlAttrDumpOutput()
771 if ((cur->ns != NULL) && (cur->ns->prefix != NULL)) { in xmlAttrDumpOutput()
772 xmlOutputBufferWriteString(buf, (const char *)cur->ns->prefix); in xmlAttrDumpOutput()
775 xmlOutputBufferWriteString(buf, (const char *)cur->name); in xmlAttrDumpOutput()
777 xmlAttrSerializeContent(buf, cur); in xmlAttrDumpOutput()
789 htmlNodeDumpOutputInternal(xmlSaveCtxtPtr ctxt, xmlNodePtr cur) { in htmlNodeDumpOutputInternal() argument
799 doc = cur->doc; in htmlNodeDumpOutputInternal()
824 htmlNodeDumpFormatOutput(buf, doc, cur, in htmlNodeDumpOutputInternal()
827 htmlNodeDumpFormatOutput(buf, doc, cur, in htmlNodeDumpOutputInternal()
848 xmlNodeDumpOutputInternal(xmlSaveCtxtPtr ctxt, xmlNodePtr cur) { in xmlNodeDumpOutputInternal() argument
855 if (cur == NULL) return; in xmlNodeDumpOutputInternal()
858 root = cur; in xmlNodeDumpOutputInternal()
859 parent = cur->parent; in xmlNodeDumpOutputInternal()
861 switch (cur->type) { in xmlNodeDumpOutputInternal()
864 xmlDocContentDumpOutput(ctxt, (xmlDocPtr) cur); in xmlNodeDumpOutputInternal()
868 xmlDtdDumpOutput(ctxt, (xmlDtdPtr) cur); in xmlNodeDumpOutputInternal()
873 if ((cur->parent == parent) && (cur->children != NULL)) { in xmlNodeDumpOutputInternal()
874 parent = cur; in xmlNodeDumpOutputInternal()
875 cur = cur->children; in xmlNodeDumpOutputInternal()
881 xmlBufDumpElementDecl(buf->buffer, (xmlElementPtr) cur); in xmlNodeDumpOutputInternal()
885 xmlBufDumpAttributeDecl(buf->buffer, (xmlAttributePtr) cur); in xmlNodeDumpOutputInternal()
889 xmlBufDumpEntityDecl(buf->buffer, (xmlEntityPtr) cur); in xmlNodeDumpOutputInternal()
893 if ((cur != root) && (ctxt->format == 1) && in xmlNodeDumpOutputInternal()
905 if ((cur->parent != parent) && (cur->children != NULL)) { in xmlNodeDumpOutputInternal()
906 xmlNodeDumpOutputInternal(ctxt, cur); in xmlNodeDumpOutputInternal()
911 if ((cur->ns != NULL) && (cur->ns->prefix != NULL)) { in xmlNodeDumpOutputInternal()
912 xmlOutputBufferWriteString(buf, (const char *)cur->ns->prefix); in xmlNodeDumpOutputInternal()
915 xmlOutputBufferWriteString(buf, (const char *)cur->name); in xmlNodeDumpOutputInternal()
916 if (cur->nsDef) in xmlNodeDumpOutputInternal()
917 xmlNsListDumpOutputCtxt(ctxt, cur->nsDef); in xmlNodeDumpOutputInternal()
918 for (attr = cur->properties; attr != NULL; attr = attr->next) in xmlNodeDumpOutputInternal()
921 if (cur->children == NULL) { in xmlNodeDumpOutputInternal()
930 if ((cur->ns != NULL) && (cur->ns->prefix != NULL)) { in xmlNodeDumpOutputInternal()
932 (const char *)cur->ns->prefix); in xmlNodeDumpOutputInternal()
935 xmlOutputBufferWriteString(buf, (const char *)cur->name); in xmlNodeDumpOutputInternal()
942 tmp = cur->children; in xmlNodeDumpOutputInternal()
948 unformattedNode = cur; in xmlNodeDumpOutputInternal()
959 parent = cur; in xmlNodeDumpOutputInternal()
960 cur = cur->children; in xmlNodeDumpOutputInternal()
967 if (cur->content == NULL) in xmlNodeDumpOutputInternal()
969 if (cur->name != xmlStringTextNoenc) { in xmlNodeDumpOutputInternal()
970 xmlOutputBufferWriteEscape(buf, cur->content, ctxt->escape); in xmlNodeDumpOutputInternal()
975 xmlOutputBufferWriteString(buf, (const char *) cur->content); in xmlNodeDumpOutputInternal()
980 if ((cur != root) && (ctxt->format == 1) && (xmlIndentTreeOutput)) in xmlNodeDumpOutputInternal()
986 if (cur->content != NULL) { in xmlNodeDumpOutputInternal()
988 xmlOutputBufferWriteString(buf, (const char *)cur->name); in xmlNodeDumpOutputInternal()
989 if (cur->content != NULL) { in xmlNodeDumpOutputInternal()
995 (const char *)cur->content); in xmlNodeDumpOutputInternal()
1000 xmlOutputBufferWriteString(buf, (const char *)cur->name); in xmlNodeDumpOutputInternal()
1008 if ((cur != root) && (ctxt->format == 1) && (xmlIndentTreeOutput)) in xmlNodeDumpOutputInternal()
1014 if (cur->content != NULL) { in xmlNodeDumpOutputInternal()
1016 xmlOutputBufferWriteString(buf, (const char *)cur->content); in xmlNodeDumpOutputInternal()
1023 xmlOutputBufferWriteString(buf, (const char *)cur->name); in xmlNodeDumpOutputInternal()
1028 if (cur->content == NULL || *cur->content == '\0') { in xmlNodeDumpOutputInternal()
1031 start = end = cur->content; in xmlNodeDumpOutputInternal()
1053 xmlAttrDumpOutput(ctxt, (xmlAttrPtr) cur); in xmlNodeDumpOutputInternal()
1057 xmlNsDumpOutputCtxt(ctxt, (xmlNsPtr) cur); in xmlNodeDumpOutputInternal()
1065 if (cur == root) in xmlNodeDumpOutputInternal()
1068 (cur->type != XML_XINCLUDE_START) && in xmlNodeDumpOutputInternal()
1069 (cur->type != XML_XINCLUDE_END)) in xmlNodeDumpOutputInternal()
1071 if (cur->next != NULL) { in xmlNodeDumpOutputInternal()
1072 cur = cur->next; in xmlNodeDumpOutputInternal()
1076 cur = parent; in xmlNodeDumpOutputInternal()
1078 parent = cur->parent; in xmlNodeDumpOutputInternal()
1080 if (cur->type == XML_ELEMENT_NODE) { in xmlNodeDumpOutputInternal()
1089 if ((cur->ns != NULL) && (cur->ns->prefix != NULL)) { in xmlNodeDumpOutputInternal()
1091 (const char *)cur->ns->prefix); in xmlNodeDumpOutputInternal()
1095 xmlOutputBufferWriteString(buf, (const char *)cur->name); in xmlNodeDumpOutputInternal()
1100 if (cur == unformattedNode) { in xmlNodeDumpOutputInternal()
1116 xmlDocContentDumpOutput(xmlSaveCtxtPtr ctxt, xmlDocPtr cur) { in xmlDocContentDumpOutput() argument
1121 const xmlChar *oldenc = cur->encoding; in xmlDocContentDumpOutput()
1132 if ((cur->type != XML_HTML_DOCUMENT_NODE) && in xmlDocContentDumpOutput()
1133 (cur->type != XML_DOCUMENT_NODE)) in xmlDocContentDumpOutput()
1137 cur->encoding = BAD_CAST ctxt->encoding; in xmlDocContentDumpOutput()
1138 } else if (cur->encoding != NULL) { in xmlDocContentDumpOutput()
1139 encoding = cur->encoding; in xmlDocContentDumpOutput()
1142 if (((cur->type == XML_HTML_DOCUMENT_NODE) && in xmlDocContentDumpOutput()
1148 htmlSetMetaEncoding(cur, (const xmlChar *) encoding); in xmlDocContentDumpOutput()
1150 encoding = htmlGetMetaEncoding(cur); in xmlDocContentDumpOutput()
1156 cur->encoding = oldenc; in xmlDocContentDumpOutput()
1161 htmlDocContentDumpFormatOutput(buf, cur, in xmlDocContentDumpOutput()
1164 htmlDocContentDumpFormatOutput(buf, cur, in xmlDocContentDumpOutput()
1167 cur->encoding = oldenc; in xmlDocContentDumpOutput()
1172 } else if ((cur->type == XML_DOCUMENT_NODE) || in xmlDocContentDumpOutput()
1188 cur->encoding = oldenc; in xmlDocContentDumpOutput()
1205 if (cur->version != NULL) in xmlDocContentDumpOutput()
1206 xmlBufWriteQuotedString(buf->buffer, cur->version); in xmlDocContentDumpOutput()
1213 switch (cur->standalone) { in xmlDocContentDumpOutput()
1228 dtd = xmlGetIntSubset(cur); in xmlDocContentDumpOutput()
1235 if (cur->children != NULL) { in xmlDocContentDumpOutput()
1236 xmlNodePtr child = cur->children; in xmlDocContentDumpOutput()
1262 cur->encoding = oldenc; in xmlDocContentDumpOutput()
1347 xhtmlAttrListDumpOutput(xmlSaveCtxtPtr ctxt, xmlAttrPtr cur) { in xhtmlAttrListDumpOutput() argument
1355 if (cur == NULL) return; in xhtmlAttrListDumpOutput()
1357 parent = cur->parent; in xhtmlAttrListDumpOutput()
1358 while (cur != NULL) { in xhtmlAttrListDumpOutput()
1359 if ((cur->ns == NULL) && (xmlStrEqual(cur->name, BAD_CAST "id"))) in xhtmlAttrListDumpOutput()
1360 id = cur; in xhtmlAttrListDumpOutput()
1362 if ((cur->ns == NULL) && (xmlStrEqual(cur->name, BAD_CAST "name"))) in xhtmlAttrListDumpOutput()
1363 name = cur; in xhtmlAttrListDumpOutput()
1365 if ((cur->ns == NULL) && (xmlStrEqual(cur->name, BAD_CAST "lang"))) in xhtmlAttrListDumpOutput()
1366 lang = cur; in xhtmlAttrListDumpOutput()
1368 if ((cur->ns != NULL) && (xmlStrEqual(cur->name, BAD_CAST "lang")) && in xhtmlAttrListDumpOutput()
1369 (xmlStrEqual(cur->ns->prefix, BAD_CAST "xml"))) in xhtmlAttrListDumpOutput()
1370 xml_lang = cur; in xhtmlAttrListDumpOutput()
1371 else if ((cur->ns == NULL) && in xhtmlAttrListDumpOutput()
1372 ((cur->children == NULL) || in xhtmlAttrListDumpOutput()
1373 (cur->children->content == NULL) || in xhtmlAttrListDumpOutput()
1374 (cur->children->content[0] == 0)) && in xhtmlAttrListDumpOutput()
1375 (htmlIsBooleanAttr(cur->name))) { in xhtmlAttrListDumpOutput()
1376 if (cur->children != NULL) in xhtmlAttrListDumpOutput()
1377 xmlFreeNode(cur->children); in xhtmlAttrListDumpOutput()
1378 cur->children = xmlNewText(cur->name); in xhtmlAttrListDumpOutput()
1379 if (cur->children != NULL) in xhtmlAttrListDumpOutput()
1380 cur->children->parent = (xmlNodePtr) cur; in xhtmlAttrListDumpOutput()
1382 xmlAttrDumpOutput(ctxt, cur); in xhtmlAttrListDumpOutput()
1383 cur = cur->next; in xhtmlAttrListDumpOutput()
1431 xhtmlNodeDumpOutput(xmlSaveCtxtPtr ctxt, xmlNodePtr cur) { in xhtmlNodeDumpOutput() argument
1437 if (cur == NULL) return; in xhtmlNodeDumpOutput()
1439 root = cur; in xhtmlNodeDumpOutput()
1441 switch (cur->type) { in xhtmlNodeDumpOutput()
1444 xmlDocContentDumpOutput(ctxt, (xmlDocPtr) cur); in xhtmlNodeDumpOutput()
1448 xmlNsDumpOutputCtxt(ctxt, (xmlNsPtr) cur); in xhtmlNodeDumpOutput()
1452 xmlDtdDumpOutput(ctxt, (xmlDtdPtr) cur); in xhtmlNodeDumpOutput()
1456 if (cur->children) { in xhtmlNodeDumpOutput()
1457 cur = cur->children; in xhtmlNodeDumpOutput()
1463 xmlBufDumpElementDecl(buf->buffer, (xmlElementPtr) cur); in xhtmlNodeDumpOutput()
1467 xmlBufDumpAttributeDecl(buf->buffer, (xmlAttributePtr) cur); in xhtmlNodeDumpOutput()
1471 xmlBufDumpEntityDecl(buf->buffer, (xmlEntityPtr) cur); in xhtmlNodeDumpOutput()
1477 if ((cur != root) && (ctxt->format == 1) && (xmlIndentTreeOutput)) in xhtmlNodeDumpOutput()
1484 if ((cur->ns != NULL) && (cur->ns->prefix != NULL)) { in xhtmlNodeDumpOutput()
1485 xmlOutputBufferWriteString(buf, (const char *)cur->ns->prefix); in xhtmlNodeDumpOutput()
1489 xmlOutputBufferWriteString(buf, (const char *)cur->name); in xhtmlNodeDumpOutput()
1490 if (cur->nsDef) in xhtmlNodeDumpOutput()
1491 xmlNsListDumpOutputCtxt(ctxt, cur->nsDef); in xhtmlNodeDumpOutput()
1492 if ((xmlStrEqual(cur->name, BAD_CAST "html") && in xhtmlNodeDumpOutput()
1493 (cur->ns == NULL) && (cur->nsDef == NULL))) { in xhtmlNodeDumpOutput()
1500 if (cur->properties != NULL) in xhtmlNodeDumpOutput()
1501 xhtmlAttrListDumpOutput(ctxt, cur->properties); in xhtmlNodeDumpOutput()
1503 if ((cur->parent != NULL) && in xhtmlNodeDumpOutput()
1504 (cur->parent->parent == (xmlNodePtr) cur->doc) && in xhtmlNodeDumpOutput()
1505 xmlStrEqual(cur->name, BAD_CAST"head") && in xhtmlNodeDumpOutput()
1506 xmlStrEqual(cur->parent->name, BAD_CAST"html")) { in xhtmlNodeDumpOutput()
1508 tmp = cur->children; in xhtmlNodeDumpOutput()
1529 if (cur->children == NULL) { in xhtmlNodeDumpOutput()
1530 if (((cur->ns == NULL) || (cur->ns->prefix == NULL)) && in xhtmlNodeDumpOutput()
1531 ((xhtmlIsEmpty(cur) == 1) && (addmeta == 0))) { in xhtmlNodeDumpOutput()
1566 if ((cur->ns != NULL) && (cur->ns->prefix != NULL)) { in xhtmlNodeDumpOutput()
1568 (const char *)cur->ns->prefix); in xhtmlNodeDumpOutput()
1571 xmlOutputBufferWriteString(buf, (const char *)cur->name); in xhtmlNodeDumpOutput()
1598 tmp = cur->children; in xhtmlNodeDumpOutput()
1602 unformattedNode = cur; in xhtmlNodeDumpOutput()
1612 cur = cur->children; in xhtmlNodeDumpOutput()
1619 if (cur->content == NULL) in xhtmlNodeDumpOutput()
1621 if ((cur->name == xmlStringText) || in xhtmlNodeDumpOutput()
1622 (cur->name != xmlStringTextNoenc)) { in xhtmlNodeDumpOutput()
1623 xmlOutputBufferWriteEscape(buf, cur->content, ctxt->escape); in xhtmlNodeDumpOutput()
1628 xmlOutputBufferWriteString(buf, (const char *) cur->content); in xhtmlNodeDumpOutput()
1633 if (cur->content != NULL) { in xhtmlNodeDumpOutput()
1635 xmlOutputBufferWriteString(buf, (const char *)cur->name); in xhtmlNodeDumpOutput()
1636 if (cur->content != NULL) { in xhtmlNodeDumpOutput()
1639 (const char *)cur->content); in xhtmlNodeDumpOutput()
1644 xmlOutputBufferWriteString(buf, (const char *)cur->name); in xhtmlNodeDumpOutput()
1650 if (cur->content != NULL) { in xhtmlNodeDumpOutput()
1652 xmlOutputBufferWriteString(buf, (const char *)cur->content); in xhtmlNodeDumpOutput()
1659 xmlOutputBufferWriteString(buf, (const char *)cur->name); in xhtmlNodeDumpOutput()
1664 if (cur->content == NULL || *cur->content == '\0') { in xhtmlNodeDumpOutput()
1667 start = end = cur->content; in xhtmlNodeDumpOutput()
1689 xmlAttrDumpOutput(ctxt, (xmlAttrPtr) cur); in xhtmlNodeDumpOutput()
1697 if (cur == root) in xhtmlNodeDumpOutput()
1701 if (cur->next != NULL) { in xhtmlNodeDumpOutput()
1702 cur = cur->next; in xhtmlNodeDumpOutput()
1710 if (cur->parent == NULL) in xhtmlNodeDumpOutput()
1712 cur = cur->parent; in xhtmlNodeDumpOutput()
1714 if (cur->type == XML_ELEMENT_NODE) { in xhtmlNodeDumpOutput()
1723 if ((cur->ns != NULL) && (cur->ns->prefix != NULL)) { in xhtmlNodeDumpOutput()
1725 (const char *)cur->ns->prefix); in xhtmlNodeDumpOutput()
1729 xmlOutputBufferWriteString(buf, (const char *)cur->name); in xhtmlNodeDumpOutput()
1732 if (cur == unformattedNode) { in xhtmlNodeDumpOutput()
1898 xmlSaveTree(xmlSaveCtxtPtr ctxt, xmlNodePtr cur) in xmlSaveTree() argument
1902 if ((ctxt == NULL) || (cur == NULL)) return(-1); in xmlSaveTree()
1905 xhtmlNodeDumpOutput(ctxt, cur); in xmlSaveTree()
1908 if (((cur->type != XML_NAMESPACE_DECL) && (cur->doc != NULL) && in xmlSaveTree()
1909 (cur->doc->type == XML_HTML_DOCUMENT_NODE) && in xmlSaveTree()
1912 htmlNodeDumpOutputInternal(ctxt, cur); in xmlSaveTree()
1916 xmlNodeDumpOutputInternal(ctxt, cur); in xmlSaveTree()
2010 xmlChar *base, *cur; in xmlBufAttrSerializeTxtContent() local
2014 base = cur = (xmlChar *) string; in xmlBufAttrSerializeTxtContent()
2015 while (*cur != 0) { in xmlBufAttrSerializeTxtContent()
2016 if (*cur == '\n') { in xmlBufAttrSerializeTxtContent()
2017 if (base != cur) in xmlBufAttrSerializeTxtContent()
2018 xmlBufAdd(buf, base, cur - base); in xmlBufAttrSerializeTxtContent()
2020 cur++; in xmlBufAttrSerializeTxtContent()
2021 base = cur; in xmlBufAttrSerializeTxtContent()
2022 } else if (*cur == '\r') { in xmlBufAttrSerializeTxtContent()
2023 if (base != cur) in xmlBufAttrSerializeTxtContent()
2024 xmlBufAdd(buf, base, cur - base); in xmlBufAttrSerializeTxtContent()
2026 cur++; in xmlBufAttrSerializeTxtContent()
2027 base = cur; in xmlBufAttrSerializeTxtContent()
2028 } else if (*cur == '\t') { in xmlBufAttrSerializeTxtContent()
2029 if (base != cur) in xmlBufAttrSerializeTxtContent()
2030 xmlBufAdd(buf, base, cur - base); in xmlBufAttrSerializeTxtContent()
2032 cur++; in xmlBufAttrSerializeTxtContent()
2033 base = cur; in xmlBufAttrSerializeTxtContent()
2034 } else if (*cur == '"') { in xmlBufAttrSerializeTxtContent()
2035 if (base != cur) in xmlBufAttrSerializeTxtContent()
2036 xmlBufAdd(buf, base, cur - base); in xmlBufAttrSerializeTxtContent()
2038 cur++; in xmlBufAttrSerializeTxtContent()
2039 base = cur; in xmlBufAttrSerializeTxtContent()
2040 } else if (*cur == '<') { in xmlBufAttrSerializeTxtContent()
2041 if (base != cur) in xmlBufAttrSerializeTxtContent()
2042 xmlBufAdd(buf, base, cur - base); in xmlBufAttrSerializeTxtContent()
2044 cur++; in xmlBufAttrSerializeTxtContent()
2045 base = cur; in xmlBufAttrSerializeTxtContent()
2046 } else if (*cur == '>') { in xmlBufAttrSerializeTxtContent()
2047 if (base != cur) in xmlBufAttrSerializeTxtContent()
2048 xmlBufAdd(buf, base, cur - base); in xmlBufAttrSerializeTxtContent()
2050 cur++; in xmlBufAttrSerializeTxtContent()
2051 base = cur; in xmlBufAttrSerializeTxtContent()
2052 } else if (*cur == '&') { in xmlBufAttrSerializeTxtContent()
2053 if (base != cur) in xmlBufAttrSerializeTxtContent()
2054 xmlBufAdd(buf, base, cur - base); in xmlBufAttrSerializeTxtContent()
2056 cur++; in xmlBufAttrSerializeTxtContent()
2057 base = cur; in xmlBufAttrSerializeTxtContent()
2058 } else if ((*cur >= 0x80) && (cur[1] != 0) && in xmlBufAttrSerializeTxtContent()
2066 if (base != cur) in xmlBufAttrSerializeTxtContent()
2067 xmlBufAdd(buf, base, cur - base); in xmlBufAttrSerializeTxtContent()
2068 if (*cur < 0xC0) { in xmlBufAttrSerializeTxtContent()
2070 xmlSerializeHexCharRef(tmp, *cur); in xmlBufAttrSerializeTxtContent()
2072 cur++; in xmlBufAttrSerializeTxtContent()
2073 base = cur; in xmlBufAttrSerializeTxtContent()
2075 } else if (*cur < 0xE0) { in xmlBufAttrSerializeTxtContent()
2076 val = (cur[0]) & 0x1F; in xmlBufAttrSerializeTxtContent()
2078 val |= (cur[1]) & 0x3F; in xmlBufAttrSerializeTxtContent()
2080 } else if ((*cur < 0xF0) && (cur [2] != 0)) { in xmlBufAttrSerializeTxtContent()
2081 val = (cur[0]) & 0x0F; in xmlBufAttrSerializeTxtContent()
2083 val |= (cur[1]) & 0x3F; in xmlBufAttrSerializeTxtContent()
2085 val |= (cur[2]) & 0x3F; in xmlBufAttrSerializeTxtContent()
2087 } else if ((*cur < 0xF8) && (cur [2] != 0) && (cur[3] != 0)) { in xmlBufAttrSerializeTxtContent()
2088 val = (cur[0]) & 0x07; in xmlBufAttrSerializeTxtContent()
2090 val |= (cur[1]) & 0x3F; in xmlBufAttrSerializeTxtContent()
2092 val |= (cur[2]) & 0x3F; in xmlBufAttrSerializeTxtContent()
2094 val |= (cur[3]) & 0x3F; in xmlBufAttrSerializeTxtContent()
2099 xmlSerializeHexCharRef(tmp, *cur); in xmlBufAttrSerializeTxtContent()
2101 cur++; in xmlBufAttrSerializeTxtContent()
2102 base = cur; in xmlBufAttrSerializeTxtContent()
2111 cur += l; in xmlBufAttrSerializeTxtContent()
2112 base = cur; in xmlBufAttrSerializeTxtContent()
2114 cur++; in xmlBufAttrSerializeTxtContent()
2117 if (base != cur) in xmlBufAttrSerializeTxtContent()
2118 xmlBufAdd(buf, base, cur - base); in xmlBufAttrSerializeTxtContent()
2162 xmlNodeDump(xmlBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur, int level, in xmlNodeDump() argument
2168 if ((buf == NULL) || (cur == NULL)) in xmlNodeDump()
2173 ret = xmlBufNodeDump(buffer, doc, cur, level, format); in xmlNodeDump()
2197 xmlBufNodeDump(xmlBufPtr buf, xmlDocPtr doc, xmlNodePtr cur, int level, in xmlBufNodeDump() argument
2207 if (cur == NULL) { in xmlBufNodeDump()
2237 xmlNodeDumpOutput(outbuf, doc, cur, level, format, NULL); in xmlBufNodeDump()
2253 xmlElemDump(FILE * f, xmlDocPtr doc, xmlNodePtr cur) in xmlElemDump() argument
2259 if (cur == NULL) { in xmlElemDump()
2278 htmlNodeDumpOutput(outbuf, doc, cur, NULL); in xmlElemDump()
2280 xmlSaveErr(XML_ERR_INTERNAL_ERROR, cur, "HTML support not compiled in\n"); in xmlElemDump()
2283 xmlNodeDumpOutput(outbuf, doc, cur, 0, 1, NULL); in xmlElemDump()
2307 xmlNodeDumpOutput(xmlOutputBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur, in xmlNodeDumpOutput() argument
2318 if ((buf == NULL) || (cur == NULL)) return; in xmlNodeDumpOutput()
2340 xhtmlNodeDumpOutput(&ctxt, cur); in xmlNodeDumpOutput()
2343 xmlNodeDumpOutputInternal(&ctxt, cur); in xmlNodeDumpOutput()
2446 xmlDocDumpMemory(xmlDocPtr cur, xmlChar**mem, int *size) { in xmlDocDumpMemory() argument
2447 xmlDocDumpFormatMemoryEnc(cur, mem, size, NULL, 0); in xmlDocDumpMemory()
2464 xmlDocDumpFormatMemory(xmlDocPtr cur, xmlChar**mem, int *size, int format) { in xmlDocDumpFormatMemory() argument
2465 xmlDocDumpFormatMemoryEnc(cur, mem, size, NULL, format); in xmlDocDumpFormatMemory()
2500 xmlDocFormatDump(FILE *f, xmlDocPtr cur, int format) { in xmlDocFormatDump() argument
2507 if (cur == NULL) { in xmlDocFormatDump()
2514 encoding = (const char *) cur->encoding; in xmlDocFormatDump()
2519 xmlFree((char *) cur->encoding); in xmlDocFormatDump()
2520 cur->encoding = NULL; in xmlDocFormatDump()
2533 xmlDocContentDumpOutput(&ctxt, cur); in xmlDocFormatDump()
2549 xmlDocDump(FILE *f, xmlDocPtr cur) { in xmlDocDump() argument
2550 return(xmlDocFormatDump (f, cur, 0)); in xmlDocDump()
2566 xmlSaveFileTo(xmlOutputBufferPtr buf, xmlDocPtr cur, const char *encoding) { in xmlSaveFileTo() argument
2571 if (cur == NULL) { in xmlSaveFileTo()
2582 xmlDocContentDumpOutput(&ctxt, cur); in xmlSaveFileTo()
2601 xmlSaveFormatFileTo(xmlOutputBufferPtr buf, xmlDocPtr cur, in xmlSaveFormatFileTo() argument
2608 if ((cur == NULL) || in xmlSaveFormatFileTo()
2609 ((cur->type != XML_DOCUMENT_NODE) && in xmlSaveFormatFileTo()
2610 (cur->type != XML_HTML_DOCUMENT_NODE))) { in xmlSaveFormatFileTo()
2621 xmlDocContentDumpOutput(&ctxt, cur); in xmlSaveFormatFileTo()
2640 xmlSaveFormatFileEnc( const char * filename, xmlDocPtr cur, in xmlSaveFormatFileEnc() argument
2647 if (cur == NULL) in xmlSaveFormatFileEnc()
2651 encoding = (const char *) cur->encoding; in xmlSaveFormatFileEnc()
2661 if (cur->compression < 0) cur->compression = xmlGetCompressMode(); in xmlSaveFormatFileEnc()
2666 buf = xmlOutputBufferCreateFilename(filename, handler, cur->compression); in xmlSaveFormatFileEnc()
2676 xmlDocContentDumpOutput(&ctxt, cur); in xmlSaveFormatFileEnc()
2694 xmlSaveFileEnc(const char *filename, xmlDocPtr cur, const char *encoding) { in xmlSaveFileEnc() argument
2695 return ( xmlSaveFormatFileEnc( filename, cur, encoding, 0 ) ); in xmlSaveFileEnc()
2713 xmlSaveFormatFile(const char *filename, xmlDocPtr cur, int format) { in xmlSaveFormatFile() argument
2714 return ( xmlSaveFormatFileEnc( filename, cur, NULL, format ) ); in xmlSaveFormatFile()
2728 xmlSaveFile(const char *filename, xmlDocPtr cur) { in xmlSaveFile() argument
2729 return(xmlSaveFormatFileEnc(filename, cur, NULL, 0)); in xmlSaveFile()