Lines Matching refs:count
522 int count; in xmlTextWriterStartDocument() local
562 count = xmlOutputBufferWriteString(writer->out, "<?xml version="); in xmlTextWriterStartDocument()
563 if (count < 0) in xmlTextWriterStartDocument()
565 sum += count; in xmlTextWriterStartDocument()
566 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartDocument()
567 if (count < 0) in xmlTextWriterStartDocument()
569 sum += count; in xmlTextWriterStartDocument()
571 count = xmlOutputBufferWriteString(writer->out, version); in xmlTextWriterStartDocument()
573 count = xmlOutputBufferWriteString(writer->out, "1.0"); in xmlTextWriterStartDocument()
574 if (count < 0) in xmlTextWriterStartDocument()
576 sum += count; in xmlTextWriterStartDocument()
577 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartDocument()
578 if (count < 0) in xmlTextWriterStartDocument()
580 sum += count; in xmlTextWriterStartDocument()
582 count = xmlOutputBufferWriteString(writer->out, " encoding="); in xmlTextWriterStartDocument()
583 if (count < 0) in xmlTextWriterStartDocument()
585 sum += count; in xmlTextWriterStartDocument()
586 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartDocument()
587 if (count < 0) in xmlTextWriterStartDocument()
589 sum += count; in xmlTextWriterStartDocument()
590 count = in xmlTextWriterStartDocument()
593 if (count < 0) in xmlTextWriterStartDocument()
595 sum += count; in xmlTextWriterStartDocument()
596 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartDocument()
597 if (count < 0) in xmlTextWriterStartDocument()
599 sum += count; in xmlTextWriterStartDocument()
603 count = xmlOutputBufferWriteString(writer->out, " standalone="); in xmlTextWriterStartDocument()
604 if (count < 0) in xmlTextWriterStartDocument()
606 sum += count; in xmlTextWriterStartDocument()
607 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartDocument()
608 if (count < 0) in xmlTextWriterStartDocument()
610 sum += count; in xmlTextWriterStartDocument()
611 count = xmlOutputBufferWriteString(writer->out, standalone); in xmlTextWriterStartDocument()
612 if (count < 0) in xmlTextWriterStartDocument()
614 sum += count; in xmlTextWriterStartDocument()
615 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartDocument()
616 if (count < 0) in xmlTextWriterStartDocument()
618 sum += count; in xmlTextWriterStartDocument()
621 count = xmlOutputBufferWriteString(writer->out, "?>\n"); in xmlTextWriterStartDocument()
622 if (count < 0) in xmlTextWriterStartDocument()
624 sum += count; in xmlTextWriterStartDocument()
641 int count; in xmlTextWriterEndDocument() local
661 count = xmlTextWriterEndElement(writer); in xmlTextWriterEndDocument()
662 if (count < 0) in xmlTextWriterEndDocument()
664 sum += count; in xmlTextWriterEndDocument()
668 count = xmlTextWriterEndPI(writer); in xmlTextWriterEndDocument()
669 if (count < 0) in xmlTextWriterEndDocument()
671 sum += count; in xmlTextWriterEndDocument()
674 count = xmlTextWriterEndCDATA(writer); in xmlTextWriterEndDocument()
675 if (count < 0) in xmlTextWriterEndDocument()
677 sum += count; in xmlTextWriterEndDocument()
688 count = xmlTextWriterEndDTD(writer); in xmlTextWriterEndDocument()
689 if (count < 0) in xmlTextWriterEndDocument()
691 sum += count; in xmlTextWriterEndDocument()
694 count = xmlTextWriterEndComment(writer); in xmlTextWriterEndDocument()
695 if (count < 0) in xmlTextWriterEndDocument()
697 sum += count; in xmlTextWriterEndDocument()
705 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterEndDocument()
706 if (count < 0) in xmlTextWriterEndDocument()
708 sum += count; in xmlTextWriterEndDocument()
727 int count; in xmlTextWriterStartComment() local
749 count = xmlTextWriterOutputNSDecl(writer); in xmlTextWriterStartComment()
750 if (count < 0) in xmlTextWriterStartComment()
752 sum += count; in xmlTextWriterStartComment()
753 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterStartComment()
754 if (count < 0) in xmlTextWriterStartComment()
756 sum += count; in xmlTextWriterStartComment()
758 count = in xmlTextWriterStartComment()
760 if (count < 0) in xmlTextWriterStartComment()
762 sum += count; in xmlTextWriterStartComment()
786 count = xmlTextWriterWriteIndent(writer); in xmlTextWriterStartComment()
787 if (count < 0) in xmlTextWriterStartComment()
789 sum += count; in xmlTextWriterStartComment()
792 count = xmlOutputBufferWriteString(writer->out, "<!--"); in xmlTextWriterStartComment()
793 if (count < 0) in xmlTextWriterStartComment()
795 sum += count; in xmlTextWriterStartComment()
811 int count; in xmlTextWriterEndComment() local
836 count = xmlOutputBufferWriteString(writer->out, "-->"); in xmlTextWriterEndComment()
837 if (count < 0) in xmlTextWriterEndComment()
839 sum += count; in xmlTextWriterEndComment()
846 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterEndComment()
847 if (count < 0) in xmlTextWriterEndComment()
849 sum += count; in xmlTextWriterEndComment()
926 int count; in xmlTextWriterWriteComment() local
930 count = xmlTextWriterStartComment(writer); in xmlTextWriterWriteComment()
931 if (count < 0) in xmlTextWriterWriteComment()
933 sum += count; in xmlTextWriterWriteComment()
934 count = xmlTextWriterWriteString(writer, content); in xmlTextWriterWriteComment()
935 if (count < 0) in xmlTextWriterWriteComment()
937 sum += count; in xmlTextWriterWriteComment()
938 count = xmlTextWriterEndComment(writer); in xmlTextWriterWriteComment()
939 if (count < 0) in xmlTextWriterWriteComment()
941 sum += count; in xmlTextWriterWriteComment()
958 int count; in xmlTextWriterStartElement() local
978 count = xmlTextWriterEndAttribute(writer); in xmlTextWriterStartElement()
979 if (count < 0) in xmlTextWriterStartElement()
981 sum += count; in xmlTextWriterStartElement()
985 count = xmlTextWriterOutputNSDecl(writer); in xmlTextWriterStartElement()
986 if (count < 0) in xmlTextWriterStartElement()
988 sum += count; in xmlTextWriterStartElement()
989 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterStartElement()
990 if (count < 0) in xmlTextWriterStartElement()
992 sum += count; in xmlTextWriterStartElement()
994 count = in xmlTextWriterStartElement()
1024 count = xmlTextWriterWriteIndent(writer); in xmlTextWriterStartElement()
1025 sum += count; in xmlTextWriterStartElement()
1028 count = xmlOutputBufferWriteString(writer->out, "<"); in xmlTextWriterStartElement()
1029 if (count < 0) in xmlTextWriterStartElement()
1031 sum += count; in xmlTextWriterStartElement()
1032 count = in xmlTextWriterStartElement()
1034 if (count < 0) in xmlTextWriterStartElement()
1036 sum += count; in xmlTextWriterStartElement()
1057 int count; in xmlTextWriterStartElementNS() local
1072 count = xmlTextWriterStartElement(writer, buf); in xmlTextWriterStartElementNS()
1074 if (count < 0) in xmlTextWriterStartElementNS()
1076 sum += count; in xmlTextWriterStartElementNS()
1120 int count; in xmlTextWriterEndElement() local
1145 count = xmlTextWriterEndAttribute(writer); in xmlTextWriterEndElement()
1146 if (count < 0) { in xmlTextWriterEndElement()
1151 sum += count; in xmlTextWriterEndElement()
1155 count = xmlTextWriterOutputNSDecl(writer); in xmlTextWriterEndElement()
1156 if (count < 0) in xmlTextWriterEndElement()
1158 sum += count; in xmlTextWriterEndElement()
1162 count = xmlOutputBufferWriteString(writer->out, "/>"); in xmlTextWriterEndElement()
1163 if (count < 0) in xmlTextWriterEndElement()
1165 sum += count; in xmlTextWriterEndElement()
1169 count = xmlTextWriterWriteIndent(writer); in xmlTextWriterEndElement()
1170 sum += count; in xmlTextWriterEndElement()
1174 count = xmlOutputBufferWriteString(writer->out, "</"); in xmlTextWriterEndElement()
1175 if (count < 0) in xmlTextWriterEndElement()
1177 sum += count; in xmlTextWriterEndElement()
1178 count = xmlOutputBufferWriteString(writer->out, in xmlTextWriterEndElement()
1180 if (count < 0) in xmlTextWriterEndElement()
1182 sum += count; in xmlTextWriterEndElement()
1183 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterEndElement()
1184 if (count < 0) in xmlTextWriterEndElement()
1186 sum += count; in xmlTextWriterEndElement()
1193 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterEndElement()
1194 sum += count; in xmlTextWriterEndElement()
1212 int count; in xmlTextWriterFullEndElement() local
1231 count = xmlTextWriterEndAttribute(writer); in xmlTextWriterFullEndElement()
1232 if (count < 0) in xmlTextWriterFullEndElement()
1234 sum += count; in xmlTextWriterFullEndElement()
1238 count = xmlTextWriterOutputNSDecl(writer); in xmlTextWriterFullEndElement()
1239 if (count < 0) in xmlTextWriterFullEndElement()
1241 sum += count; in xmlTextWriterFullEndElement()
1243 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterFullEndElement()
1244 if (count < 0) in xmlTextWriterFullEndElement()
1246 sum += count; in xmlTextWriterFullEndElement()
1252 count = xmlTextWriterWriteIndent(writer); in xmlTextWriterFullEndElement()
1253 sum += count; in xmlTextWriterFullEndElement()
1257 count = xmlOutputBufferWriteString(writer->out, "</"); in xmlTextWriterFullEndElement()
1258 if (count < 0) in xmlTextWriterFullEndElement()
1260 sum += count; in xmlTextWriterFullEndElement()
1261 count = xmlOutputBufferWriteString(writer->out, in xmlTextWriterFullEndElement()
1263 if (count < 0) in xmlTextWriterFullEndElement()
1265 sum += count; in xmlTextWriterFullEndElement()
1266 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterFullEndElement()
1267 if (count < 0) in xmlTextWriterFullEndElement()
1269 sum += count; in xmlTextWriterFullEndElement()
1276 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterFullEndElement()
1277 sum += count; in xmlTextWriterFullEndElement()
1354 int count; in xmlTextWriterWriteRawLen() local
1375 count = xmlTextWriterHandleStateDependencies(writer, p); in xmlTextWriterWriteRawLen()
1376 if (count < 0) in xmlTextWriterWriteRawLen()
1378 sum += count; in xmlTextWriterWriteRawLen()
1385 count = in xmlTextWriterWriteRawLen()
1387 if (count < 0) in xmlTextWriterWriteRawLen()
1389 sum += count; in xmlTextWriterWriteRawLen()
1480 int count; in xmlTextWriterWriteString() local
1516 count = xmlTextWriterWriteRaw(writer, buf); in xmlTextWriterWriteString()
1521 if (count < 0) in xmlTextWriterWriteString()
1523 sum += count; in xmlTextWriterWriteString()
1553 int count; in xmlOutputBufferWriteBase64() local
1590 count = xmlOutputBufferWrite(out, 2, B64CRLF); in xmlOutputBufferWriteBase64()
1591 if (count == -1) in xmlOutputBufferWriteBase64()
1593 sum += count; in xmlOutputBufferWriteBase64()
1596 count = xmlOutputBufferWrite(out, 4, (const char *) ogroup); in xmlOutputBufferWriteBase64()
1597 if (count == -1) in xmlOutputBufferWriteBase64()
1599 sum += count; in xmlOutputBufferWriteBase64()
1626 int count; in xmlTextWriterWriteBase64() local
1639 count = xmlTextWriterHandleStateDependencies(writer, p); in xmlTextWriterWriteBase64()
1640 if (count < 0) in xmlTextWriterWriteBase64()
1642 sum += count; in xmlTextWriterWriteBase64()
1649 count = in xmlTextWriterWriteBase64()
1652 if (count < 0) in xmlTextWriterWriteBase64()
1654 sum += count; in xmlTextWriterWriteBase64()
1675 int count; in xmlOutputBufferWriteBinHex() local
1687 count = in xmlOutputBufferWriteBinHex()
1690 if (count == -1) in xmlOutputBufferWriteBinHex()
1692 sum += count; in xmlOutputBufferWriteBinHex()
1693 count = in xmlOutputBufferWriteBinHex()
1696 if (count == -1) in xmlOutputBufferWriteBinHex()
1698 sum += count; in xmlOutputBufferWriteBinHex()
1719 int count; in xmlTextWriterWriteBinHex() local
1732 count = xmlTextWriterHandleStateDependencies(writer, p); in xmlTextWriterWriteBinHex()
1733 if (count < 0) in xmlTextWriterWriteBinHex()
1735 sum += count; in xmlTextWriterWriteBinHex()
1742 count = in xmlTextWriterWriteBinHex()
1745 if (count < 0) in xmlTextWriterWriteBinHex()
1747 sum += count; in xmlTextWriterWriteBinHex()
1764 int count; in xmlTextWriterStartAttribute() local
1783 count = xmlTextWriterEndAttribute(writer); in xmlTextWriterStartAttribute()
1784 if (count < 0) in xmlTextWriterStartAttribute()
1786 sum += count; in xmlTextWriterStartAttribute()
1789 count = xmlOutputBufferWriteString(writer->out, " "); in xmlTextWriterStartAttribute()
1790 if (count < 0) in xmlTextWriterStartAttribute()
1792 sum += count; in xmlTextWriterStartAttribute()
1793 count = in xmlTextWriterStartAttribute()
1796 if (count < 0) in xmlTextWriterStartAttribute()
1798 sum += count; in xmlTextWriterStartAttribute()
1799 count = xmlOutputBufferWriteString(writer->out, "="); in xmlTextWriterStartAttribute()
1800 if (count < 0) in xmlTextWriterStartAttribute()
1802 sum += count; in xmlTextWriterStartAttribute()
1803 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartAttribute()
1804 if (count < 0) in xmlTextWriterStartAttribute()
1806 sum += count; in xmlTextWriterStartAttribute()
1832 int count; in xmlTextWriterStartAttributeNS() local
1899 count = xmlTextWriterStartAttribute(writer, buf); in xmlTextWriterStartAttributeNS()
1901 if (count < 0) in xmlTextWriterStartAttributeNS()
1903 sum += count; in xmlTextWriterStartAttributeNS()
1919 int count; in xmlTextWriterEndAttribute() local
1942 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterEndAttribute()
1943 if (count < 0) { in xmlTextWriterEndAttribute()
1946 sum += count; in xmlTextWriterEndAttribute()
2028 int count; in xmlTextWriterWriteAttribute() local
2032 count = xmlTextWriterStartAttribute(writer, name); in xmlTextWriterWriteAttribute()
2033 if (count < 0) in xmlTextWriterWriteAttribute()
2035 sum += count; in xmlTextWriterWriteAttribute()
2036 count = xmlTextWriterWriteString(writer, content); in xmlTextWriterWriteAttribute()
2037 if (count < 0) in xmlTextWriterWriteAttribute()
2039 sum += count; in xmlTextWriterWriteAttribute()
2040 count = xmlTextWriterEndAttribute(writer); in xmlTextWriterWriteAttribute()
2041 if (count < 0) in xmlTextWriterWriteAttribute()
2043 sum += count; in xmlTextWriterWriteAttribute()
2135 int count; in xmlTextWriterWriteAttributeNS() local
2142 count = xmlTextWriterStartAttributeNS(writer, prefix, name, namespaceURI); in xmlTextWriterWriteAttributeNS()
2143 if (count < 0) in xmlTextWriterWriteAttributeNS()
2145 sum += count; in xmlTextWriterWriteAttributeNS()
2146 count = xmlTextWriterWriteString(writer, content); in xmlTextWriterWriteAttributeNS()
2147 if (count < 0) in xmlTextWriterWriteAttributeNS()
2149 sum += count; in xmlTextWriterWriteAttributeNS()
2150 count = xmlTextWriterEndAttribute(writer); in xmlTextWriterWriteAttributeNS()
2151 if (count < 0) in xmlTextWriterWriteAttributeNS()
2153 sum += count; in xmlTextWriterWriteAttributeNS()
2231 int count; in xmlTextWriterWriteElement() local
2235 count = xmlTextWriterStartElement(writer, name); in xmlTextWriterWriteElement()
2236 if (count == -1) in xmlTextWriterWriteElement()
2238 sum += count; in xmlTextWriterWriteElement()
2240 count = xmlTextWriterWriteString(writer, content); in xmlTextWriterWriteElement()
2241 if (count == -1) in xmlTextWriterWriteElement()
2243 sum += count; in xmlTextWriterWriteElement()
2245 count = xmlTextWriterEndElement(writer); in xmlTextWriterWriteElement()
2246 if (count == -1) in xmlTextWriterWriteElement()
2248 sum += count; in xmlTextWriterWriteElement()
2340 int count; in xmlTextWriterWriteElementNS() local
2347 count = in xmlTextWriterWriteElementNS()
2349 if (count < 0) in xmlTextWriterWriteElementNS()
2351 sum += count; in xmlTextWriterWriteElementNS()
2352 count = xmlTextWriterWriteString(writer, content); in xmlTextWriterWriteElementNS()
2353 if (count == -1) in xmlTextWriterWriteElementNS()
2355 sum += count; in xmlTextWriterWriteElementNS()
2356 count = xmlTextWriterEndElement(writer); in xmlTextWriterWriteElementNS()
2357 if (count == -1) in xmlTextWriterWriteElementNS()
2359 sum += count; in xmlTextWriterWriteElementNS()
2376 int count; in xmlTextWriterStartPI() local
2397 count = xmlTextWriterEndAttribute(writer); in xmlTextWriterStartPI()
2398 if (count < 0) in xmlTextWriterStartPI()
2400 sum += count; in xmlTextWriterStartPI()
2404 count = xmlTextWriterOutputNSDecl(writer); in xmlTextWriterStartPI()
2405 if (count < 0) in xmlTextWriterStartPI()
2407 sum += count; in xmlTextWriterStartPI()
2408 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterStartPI()
2409 if (count < 0) in xmlTextWriterStartPI()
2411 sum += count; in xmlTextWriterStartPI()
2448 count = xmlOutputBufferWriteString(writer->out, "<?"); in xmlTextWriterStartPI()
2449 if (count < 0) in xmlTextWriterStartPI()
2451 sum += count; in xmlTextWriterStartPI()
2452 count = in xmlTextWriterStartPI()
2454 if (count < 0) in xmlTextWriterStartPI()
2456 sum += count; in xmlTextWriterStartPI()
2472 int count; in xmlTextWriterEndPI() local
2492 count = xmlOutputBufferWriteString(writer->out, "?>"); in xmlTextWriterEndPI()
2493 if (count < 0) in xmlTextWriterEndPI()
2495 sum += count; in xmlTextWriterEndPI()
2502 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterEndPI()
2503 if (count < 0) in xmlTextWriterEndPI()
2505 sum += count; in xmlTextWriterEndPI()
2584 int count; in xmlTextWriterWritePI() local
2588 count = xmlTextWriterStartPI(writer, target); in xmlTextWriterWritePI()
2589 if (count == -1) in xmlTextWriterWritePI()
2591 sum += count; in xmlTextWriterWritePI()
2593 count = xmlTextWriterWriteString(writer, content); in xmlTextWriterWritePI()
2594 if (count == -1) in xmlTextWriterWritePI()
2596 sum += count; in xmlTextWriterWritePI()
2598 count = xmlTextWriterEndPI(writer); in xmlTextWriterWritePI()
2599 if (count == -1) in xmlTextWriterWritePI()
2601 sum += count; in xmlTextWriterWritePI()
2617 int count; in xmlTextWriterStartCDATA() local
2637 count = xmlTextWriterEndAttribute(writer); in xmlTextWriterStartCDATA()
2638 if (count < 0) in xmlTextWriterStartCDATA()
2640 sum += count; in xmlTextWriterStartCDATA()
2644 count = xmlTextWriterOutputNSDecl(writer); in xmlTextWriterStartCDATA()
2645 if (count < 0) in xmlTextWriterStartCDATA()
2647 sum += count; in xmlTextWriterStartCDATA()
2648 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterStartCDATA()
2649 if (count < 0) in xmlTextWriterStartCDATA()
2651 sum += count; in xmlTextWriterStartCDATA()
2677 count = xmlOutputBufferWriteString(writer->out, "<![CDATA["); in xmlTextWriterStartCDATA()
2678 if (count < 0) in xmlTextWriterStartCDATA()
2680 sum += count; in xmlTextWriterStartCDATA()
2696 int count; in xmlTextWriterEndCDATA() local
2715 count = xmlOutputBufferWriteString(writer->out, "]]>"); in xmlTextWriterEndCDATA()
2716 if (count < 0) in xmlTextWriterEndCDATA()
2718 sum += count; in xmlTextWriterEndCDATA()
2795 int count; in xmlTextWriterWriteCDATA() local
2799 count = xmlTextWriterStartCDATA(writer); in xmlTextWriterWriteCDATA()
2800 if (count == -1) in xmlTextWriterWriteCDATA()
2802 sum += count; in xmlTextWriterWriteCDATA()
2804 count = xmlTextWriterWriteString(writer, content); in xmlTextWriterWriteCDATA()
2805 if (count == -1) in xmlTextWriterWriteCDATA()
2807 sum += count; in xmlTextWriterWriteCDATA()
2809 count = xmlTextWriterEndCDATA(writer); in xmlTextWriterWriteCDATA()
2810 if (count == -1) in xmlTextWriterWriteCDATA()
2812 sum += count; in xmlTextWriterWriteCDATA()
2833 int count; in xmlTextWriterStartDTD() local
2868 count = xmlOutputBufferWriteString(writer->out, "<!DOCTYPE "); in xmlTextWriterStartDTD()
2869 if (count < 0) in xmlTextWriterStartDTD()
2871 sum += count; in xmlTextWriterStartDTD()
2872 count = xmlOutputBufferWriteString(writer->out, (const char *) name); in xmlTextWriterStartDTD()
2873 if (count < 0) in xmlTextWriterStartDTD()
2875 sum += count; in xmlTextWriterStartDTD()
2885 count = xmlOutputBufferWrite(writer->out, 1, "\n"); in xmlTextWriterStartDTD()
2887 count = xmlOutputBufferWrite(writer->out, 1, " "); in xmlTextWriterStartDTD()
2888 if (count < 0) in xmlTextWriterStartDTD()
2890 sum += count; in xmlTextWriterStartDTD()
2892 count = xmlOutputBufferWriteString(writer->out, "PUBLIC "); in xmlTextWriterStartDTD()
2893 if (count < 0) in xmlTextWriterStartDTD()
2895 sum += count; in xmlTextWriterStartDTD()
2897 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartDTD()
2898 if (count < 0) in xmlTextWriterStartDTD()
2900 sum += count; in xmlTextWriterStartDTD()
2902 count = in xmlTextWriterStartDTD()
2904 if (count < 0) in xmlTextWriterStartDTD()
2906 sum += count; in xmlTextWriterStartDTD()
2908 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartDTD()
2909 if (count < 0) in xmlTextWriterStartDTD()
2911 sum += count; in xmlTextWriterStartDTD()
2917 count = xmlOutputBufferWrite(writer->out, 1, "\n"); in xmlTextWriterStartDTD()
2919 count = xmlOutputBufferWrite(writer->out, 1, " "); in xmlTextWriterStartDTD()
2920 if (count < 0) in xmlTextWriterStartDTD()
2922 sum += count; in xmlTextWriterStartDTD()
2923 count = xmlOutputBufferWriteString(writer->out, "SYSTEM "); in xmlTextWriterStartDTD()
2924 if (count < 0) in xmlTextWriterStartDTD()
2926 sum += count; in xmlTextWriterStartDTD()
2929 count = xmlOutputBufferWriteString(writer->out, "\n "); in xmlTextWriterStartDTD()
2931 count = xmlOutputBufferWrite(writer->out, 1, " "); in xmlTextWriterStartDTD()
2932 if (count < 0) in xmlTextWriterStartDTD()
2934 sum += count; in xmlTextWriterStartDTD()
2937 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartDTD()
2938 if (count < 0) in xmlTextWriterStartDTD()
2940 sum += count; in xmlTextWriterStartDTD()
2942 count = in xmlTextWriterStartDTD()
2944 if (count < 0) in xmlTextWriterStartDTD()
2946 sum += count; in xmlTextWriterStartDTD()
2948 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartDTD()
2949 if (count < 0) in xmlTextWriterStartDTD()
2951 sum += count; in xmlTextWriterStartDTD()
2969 int count; in xmlTextWriterEndDTD() local
2988 count = xmlOutputBufferWriteString(writer->out, "]"); in xmlTextWriterEndDTD()
2989 if (count < 0) in xmlTextWriterEndDTD()
2991 sum += count; in xmlTextWriterEndDTD()
2994 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterEndDTD()
2997 if (count < 0) in xmlTextWriterEndDTD()
2999 sum += count; in xmlTextWriterEndDTD()
3000 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterEndDTD()
3007 count = xmlTextWriterEndDTDElement(writer); in xmlTextWriterEndDTD()
3011 count = xmlTextWriterEndDTDAttlist(writer); in xmlTextWriterEndDTD()
3016 count = xmlTextWriterEndDTDEntity(writer); in xmlTextWriterEndDTD()
3019 count = xmlTextWriterEndComment(writer); in xmlTextWriterEndDTD()
3026 if (count < 0) in xmlTextWriterEndDTD()
3028 sum += count; in xmlTextWriterEndDTD()
3119 int count; in xmlTextWriterWriteDTD() local
3123 count = xmlTextWriterStartDTD(writer, name, pubid, sysid); in xmlTextWriterWriteDTD()
3124 if (count == -1) in xmlTextWriterWriteDTD()
3126 sum += count; in xmlTextWriterWriteDTD()
3128 count = xmlTextWriterWriteString(writer, subset); in xmlTextWriterWriteDTD()
3129 if (count == -1) in xmlTextWriterWriteDTD()
3131 sum += count; in xmlTextWriterWriteDTD()
3133 count = xmlTextWriterEndDTD(writer); in xmlTextWriterWriteDTD()
3134 if (count == -1) in xmlTextWriterWriteDTD()
3136 sum += count; in xmlTextWriterWriteDTD()
3153 int count; in xmlTextWriterStartDTDElement() local
3171 count = xmlOutputBufferWriteString(writer->out, " ["); in xmlTextWriterStartDTDElement()
3172 if (count < 0) in xmlTextWriterStartDTDElement()
3174 sum += count; in xmlTextWriterStartDTDElement()
3176 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterStartDTDElement()
3177 if (count < 0) in xmlTextWriterStartDTDElement()
3179 sum += count; in xmlTextWriterStartDTDElement()
3211 count = xmlTextWriterWriteIndent(writer); in xmlTextWriterStartDTDElement()
3212 if (count < 0) in xmlTextWriterStartDTDElement()
3214 sum += count; in xmlTextWriterStartDTDElement()
3217 count = xmlOutputBufferWriteString(writer->out, "<!ELEMENT "); in xmlTextWriterStartDTDElement()
3218 if (count < 0) in xmlTextWriterStartDTDElement()
3220 sum += count; in xmlTextWriterStartDTDElement()
3221 count = xmlOutputBufferWriteString(writer->out, (const char *) name); in xmlTextWriterStartDTDElement()
3222 if (count < 0) in xmlTextWriterStartDTDElement()
3224 sum += count; in xmlTextWriterStartDTDElement()
3240 int count; in xmlTextWriterEndDTDElement() local
3260 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterEndDTDElement()
3261 if (count < 0) in xmlTextWriterEndDTDElement()
3263 sum += count; in xmlTextWriterEndDTDElement()
3270 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterEndDTDElement()
3271 if (count < 0) in xmlTextWriterEndDTDElement()
3273 sum += count; in xmlTextWriterEndDTDElement()
3353 int count; in xmlTextWriterWriteDTDElement() local
3360 count = xmlTextWriterStartDTDElement(writer, name); in xmlTextWriterWriteDTDElement()
3361 if (count == -1) in xmlTextWriterWriteDTDElement()
3363 sum += count; in xmlTextWriterWriteDTDElement()
3365 count = xmlTextWriterWriteString(writer, content); in xmlTextWriterWriteDTDElement()
3366 if (count == -1) in xmlTextWriterWriteDTDElement()
3368 sum += count; in xmlTextWriterWriteDTDElement()
3370 count = xmlTextWriterEndDTDElement(writer); in xmlTextWriterWriteDTDElement()
3371 if (count == -1) in xmlTextWriterWriteDTDElement()
3373 sum += count; in xmlTextWriterWriteDTDElement()
3390 int count; in xmlTextWriterStartDTDAttlist() local
3408 count = xmlOutputBufferWriteString(writer->out, " ["); in xmlTextWriterStartDTDAttlist()
3409 if (count < 0) in xmlTextWriterStartDTDAttlist()
3411 sum += count; in xmlTextWriterStartDTDAttlist()
3413 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterStartDTDAttlist()
3414 if (count < 0) in xmlTextWriterStartDTDAttlist()
3416 sum += count; in xmlTextWriterStartDTDAttlist()
3448 count = xmlTextWriterWriteIndent(writer); in xmlTextWriterStartDTDAttlist()
3449 if (count < 0) in xmlTextWriterStartDTDAttlist()
3451 sum += count; in xmlTextWriterStartDTDAttlist()
3454 count = xmlOutputBufferWriteString(writer->out, "<!ATTLIST "); in xmlTextWriterStartDTDAttlist()
3455 if (count < 0) in xmlTextWriterStartDTDAttlist()
3457 sum += count; in xmlTextWriterStartDTDAttlist()
3458 count = xmlOutputBufferWriteString(writer->out, (const char *) name); in xmlTextWriterStartDTDAttlist()
3459 if (count < 0) in xmlTextWriterStartDTDAttlist()
3461 sum += count; in xmlTextWriterStartDTDAttlist()
3477 int count; in xmlTextWriterEndDTDAttlist() local
3497 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterEndDTDAttlist()
3498 if (count < 0) in xmlTextWriterEndDTDAttlist()
3500 sum += count; in xmlTextWriterEndDTDAttlist()
3507 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterEndDTDAttlist()
3508 if (count < 0) in xmlTextWriterEndDTDAttlist()
3510 sum += count; in xmlTextWriterEndDTDAttlist()
3590 int count; in xmlTextWriterWriteDTDAttlist() local
3597 count = xmlTextWriterStartDTDAttlist(writer, name); in xmlTextWriterWriteDTDAttlist()
3598 if (count == -1) in xmlTextWriterWriteDTDAttlist()
3600 sum += count; in xmlTextWriterWriteDTDAttlist()
3602 count = xmlTextWriterWriteString(writer, content); in xmlTextWriterWriteDTDAttlist()
3603 if (count == -1) in xmlTextWriterWriteDTDAttlist()
3605 sum += count; in xmlTextWriterWriteDTDAttlist()
3607 count = xmlTextWriterEndDTDAttlist(writer); in xmlTextWriterWriteDTDAttlist()
3608 if (count == -1) in xmlTextWriterWriteDTDAttlist()
3610 sum += count; in xmlTextWriterWriteDTDAttlist()
3629 int count; in xmlTextWriterStartDTDEntity() local
3645 count = xmlOutputBufferWriteString(writer->out, " ["); in xmlTextWriterStartDTDEntity()
3646 if (count < 0) in xmlTextWriterStartDTDEntity()
3648 sum += count; in xmlTextWriterStartDTDEntity()
3650 count = in xmlTextWriterStartDTDEntity()
3652 if (count < 0) in xmlTextWriterStartDTDEntity()
3654 sum += count; in xmlTextWriterStartDTDEntity()
3691 count = xmlTextWriterWriteIndent(writer); in xmlTextWriterStartDTDEntity()
3692 if (count < 0) in xmlTextWriterStartDTDEntity()
3694 sum += count; in xmlTextWriterStartDTDEntity()
3697 count = xmlOutputBufferWriteString(writer->out, "<!ENTITY "); in xmlTextWriterStartDTDEntity()
3698 if (count < 0) in xmlTextWriterStartDTDEntity()
3700 sum += count; in xmlTextWriterStartDTDEntity()
3703 count = xmlOutputBufferWriteString(writer->out, "% "); in xmlTextWriterStartDTDEntity()
3704 if (count < 0) in xmlTextWriterStartDTDEntity()
3706 sum += count; in xmlTextWriterStartDTDEntity()
3709 count = xmlOutputBufferWriteString(writer->out, (const char *) name); in xmlTextWriterStartDTDEntity()
3710 if (count < 0) in xmlTextWriterStartDTDEntity()
3712 sum += count; in xmlTextWriterStartDTDEntity()
3728 int count; in xmlTextWriterEndDTDEntity() local
3747 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterEndDTDEntity()
3748 if (count < 0) in xmlTextWriterEndDTDEntity()
3750 sum += count; in xmlTextWriterEndDTDEntity()
3754 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterEndDTDEntity()
3755 if (count < 0) in xmlTextWriterEndDTDEntity()
3757 sum += count; in xmlTextWriterEndDTDEntity()
3764 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterEndDTDEntity()
3765 if (count < 0) in xmlTextWriterEndDTDEntity()
3767 sum += count; in xmlTextWriterEndDTDEntity()
3892 int count; in xmlTextWriterWriteDTDInternalEntity() local
3899 count = xmlTextWriterStartDTDEntity(writer, pe, name); in xmlTextWriterWriteDTDInternalEntity()
3900 if (count == -1) in xmlTextWriterWriteDTDInternalEntity()
3902 sum += count; in xmlTextWriterWriteDTDInternalEntity()
3904 count = xmlTextWriterWriteString(writer, content); in xmlTextWriterWriteDTDInternalEntity()
3905 if (count == -1) in xmlTextWriterWriteDTDInternalEntity()
3907 sum += count; in xmlTextWriterWriteDTDInternalEntity()
3909 count = xmlTextWriterEndDTDEntity(writer); in xmlTextWriterWriteDTDInternalEntity()
3910 if (count == -1) in xmlTextWriterWriteDTDInternalEntity()
3912 sum += count; in xmlTextWriterWriteDTDInternalEntity()
3938 int count; in xmlTextWriterWriteDTDExternalEntity() local
3947 count = xmlTextWriterStartDTDEntity(writer, pe, name); in xmlTextWriterWriteDTDExternalEntity()
3948 if (count == -1) in xmlTextWriterWriteDTDExternalEntity()
3950 sum += count; in xmlTextWriterWriteDTDExternalEntity()
3952 count = in xmlTextWriterWriteDTDExternalEntity()
3955 if (count < 0) in xmlTextWriterWriteDTDExternalEntity()
3957 sum += count; in xmlTextWriterWriteDTDExternalEntity()
3959 count = xmlTextWriterEndDTDEntity(writer); in xmlTextWriterWriteDTDExternalEntity()
3960 if (count == -1) in xmlTextWriterWriteDTDExternalEntity()
3962 sum += count; in xmlTextWriterWriteDTDExternalEntity()
3984 int count; in xmlTextWriterWriteDTDExternalEntityContents() local
4030 count = xmlOutputBufferWriteString(writer->out, " PUBLIC "); in xmlTextWriterWriteDTDExternalEntityContents()
4031 if (count < 0) in xmlTextWriterWriteDTDExternalEntityContents()
4033 sum += count; in xmlTextWriterWriteDTDExternalEntityContents()
4035 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterWriteDTDExternalEntityContents()
4036 if (count < 0) in xmlTextWriterWriteDTDExternalEntityContents()
4038 sum += count; in xmlTextWriterWriteDTDExternalEntityContents()
4040 count = in xmlTextWriterWriteDTDExternalEntityContents()
4042 if (count < 0) in xmlTextWriterWriteDTDExternalEntityContents()
4044 sum += count; in xmlTextWriterWriteDTDExternalEntityContents()
4046 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterWriteDTDExternalEntityContents()
4047 if (count < 0) in xmlTextWriterWriteDTDExternalEntityContents()
4049 sum += count; in xmlTextWriterWriteDTDExternalEntityContents()
4054 count = xmlOutputBufferWriteString(writer->out, " SYSTEM"); in xmlTextWriterWriteDTDExternalEntityContents()
4055 if (count < 0) in xmlTextWriterWriteDTDExternalEntityContents()
4057 sum += count; in xmlTextWriterWriteDTDExternalEntityContents()
4060 count = xmlOutputBufferWriteString(writer->out, " "); in xmlTextWriterWriteDTDExternalEntityContents()
4061 if (count < 0) in xmlTextWriterWriteDTDExternalEntityContents()
4063 sum += count; in xmlTextWriterWriteDTDExternalEntityContents()
4065 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterWriteDTDExternalEntityContents()
4066 if (count < 0) in xmlTextWriterWriteDTDExternalEntityContents()
4068 sum += count; in xmlTextWriterWriteDTDExternalEntityContents()
4070 count = in xmlTextWriterWriteDTDExternalEntityContents()
4072 if (count < 0) in xmlTextWriterWriteDTDExternalEntityContents()
4074 sum += count; in xmlTextWriterWriteDTDExternalEntityContents()
4076 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterWriteDTDExternalEntityContents()
4077 if (count < 0) in xmlTextWriterWriteDTDExternalEntityContents()
4079 sum += count; in xmlTextWriterWriteDTDExternalEntityContents()
4083 count = xmlOutputBufferWriteString(writer->out, " NDATA "); in xmlTextWriterWriteDTDExternalEntityContents()
4084 if (count < 0) in xmlTextWriterWriteDTDExternalEntityContents()
4086 sum += count; in xmlTextWriterWriteDTDExternalEntityContents()
4088 count = in xmlTextWriterWriteDTDExternalEntityContents()
4091 if (count < 0) in xmlTextWriterWriteDTDExternalEntityContents()
4093 sum += count; in xmlTextWriterWriteDTDExternalEntityContents()
4115 int count; in xmlTextWriterWriteDTDNotation() local
4133 count = xmlOutputBufferWriteString(writer->out, " ["); in xmlTextWriterWriteDTDNotation()
4134 if (count < 0) in xmlTextWriterWriteDTDNotation()
4136 sum += count; in xmlTextWriterWriteDTDNotation()
4138 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterWriteDTDNotation()
4139 if (count < 0) in xmlTextWriterWriteDTDNotation()
4141 sum += count; in xmlTextWriterWriteDTDNotation()
4153 count = xmlTextWriterWriteIndent(writer); in xmlTextWriterWriteDTDNotation()
4154 if (count < 0) in xmlTextWriterWriteDTDNotation()
4156 sum += count; in xmlTextWriterWriteDTDNotation()
4159 count = xmlOutputBufferWriteString(writer->out, "<!NOTATION "); in xmlTextWriterWriteDTDNotation()
4160 if (count < 0) in xmlTextWriterWriteDTDNotation()
4162 sum += count; in xmlTextWriterWriteDTDNotation()
4163 count = xmlOutputBufferWriteString(writer->out, (const char *) name); in xmlTextWriterWriteDTDNotation()
4164 if (count < 0) in xmlTextWriterWriteDTDNotation()
4166 sum += count; in xmlTextWriterWriteDTDNotation()
4169 count = xmlOutputBufferWriteString(writer->out, " PUBLIC "); in xmlTextWriterWriteDTDNotation()
4170 if (count < 0) in xmlTextWriterWriteDTDNotation()
4172 sum += count; in xmlTextWriterWriteDTDNotation()
4173 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterWriteDTDNotation()
4174 if (count < 0) in xmlTextWriterWriteDTDNotation()
4176 sum += count; in xmlTextWriterWriteDTDNotation()
4177 count = in xmlTextWriterWriteDTDNotation()
4179 if (count < 0) in xmlTextWriterWriteDTDNotation()
4181 sum += count; in xmlTextWriterWriteDTDNotation()
4182 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterWriteDTDNotation()
4183 if (count < 0) in xmlTextWriterWriteDTDNotation()
4185 sum += count; in xmlTextWriterWriteDTDNotation()
4190 count = xmlOutputBufferWriteString(writer->out, " SYSTEM"); in xmlTextWriterWriteDTDNotation()
4191 if (count < 0) in xmlTextWriterWriteDTDNotation()
4193 sum += count; in xmlTextWriterWriteDTDNotation()
4195 count = xmlOutputBufferWriteString(writer->out, " "); in xmlTextWriterWriteDTDNotation()
4196 if (count < 0) in xmlTextWriterWriteDTDNotation()
4198 sum += count; in xmlTextWriterWriteDTDNotation()
4199 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterWriteDTDNotation()
4200 if (count < 0) in xmlTextWriterWriteDTDNotation()
4202 sum += count; in xmlTextWriterWriteDTDNotation()
4203 count = in xmlTextWriterWriteDTDNotation()
4205 if (count < 0) in xmlTextWriterWriteDTDNotation()
4207 sum += count; in xmlTextWriterWriteDTDNotation()
4208 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterWriteDTDNotation()
4209 if (count < 0) in xmlTextWriterWriteDTDNotation()
4211 sum += count; in xmlTextWriterWriteDTDNotation()
4214 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterWriteDTDNotation()
4215 if (count < 0) in xmlTextWriterWriteDTDNotation()
4217 sum += count; in xmlTextWriterWriteDTDNotation()
4233 int count; in xmlTextWriterFlush() local
4239 count = 0; in xmlTextWriterFlush()
4241 count = xmlOutputBufferFlush(writer->out); in xmlTextWriterFlush()
4243 return count; in xmlTextWriterFlush()
4315 int count; in xmlTextWriterOutputNSDecl() local
4334 count = xmlTextWriterWriteAttribute(writer, prefix, namespaceURI); in xmlTextWriterOutputNSDecl()
4338 if (count < 0) { in xmlTextWriterOutputNSDecl()
4343 sum += count; in xmlTextWriterOutputNSDecl()
4471 int count; in xmlTextWriterVSprintf() local
4484 while (((count = vsnprintf((char *) buf, size, format, locarg)) < 0) in xmlTextWriterVSprintf()
4485 || (count == size - 1) || (count == size) || (count > size)) { in xmlTextWriterVSprintf()
4674 int count; in xmlTextWriterHandleStateDependencies() local
4691 count = xmlTextWriterOutputNSDecl(writer); in xmlTextWriterHandleStateDependencies()
4692 if (count < 0) in xmlTextWriterHandleStateDependencies()
4694 sum += count; in xmlTextWriterHandleStateDependencies()
4727 count = xmlOutputBufferWriteString(writer->out, extra); in xmlTextWriterHandleStateDependencies()
4728 if (count < 0) in xmlTextWriterHandleStateDependencies()
4730 sum += count; in xmlTextWriterHandleStateDependencies()