Lines Matching refs:count

528     int count;  in xmlTextWriterStartDocument()  local
568 count = xmlOutputBufferWriteString(writer->out, "<?xml version="); in xmlTextWriterStartDocument()
569 if (count < 0) in xmlTextWriterStartDocument()
571 sum += count; in xmlTextWriterStartDocument()
572 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartDocument()
573 if (count < 0) in xmlTextWriterStartDocument()
575 sum += count; in xmlTextWriterStartDocument()
577 count = xmlOutputBufferWriteString(writer->out, version); in xmlTextWriterStartDocument()
579 count = xmlOutputBufferWriteString(writer->out, "1.0"); in xmlTextWriterStartDocument()
580 if (count < 0) in xmlTextWriterStartDocument()
582 sum += count; in xmlTextWriterStartDocument()
583 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartDocument()
584 if (count < 0) in xmlTextWriterStartDocument()
586 sum += count; in xmlTextWriterStartDocument()
588 count = xmlOutputBufferWriteString(writer->out, " encoding="); in xmlTextWriterStartDocument()
589 if (count < 0) in xmlTextWriterStartDocument()
591 sum += count; in xmlTextWriterStartDocument()
592 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartDocument()
593 if (count < 0) in xmlTextWriterStartDocument()
595 sum += count; in xmlTextWriterStartDocument()
596 count = in xmlTextWriterStartDocument()
599 if (count < 0) in xmlTextWriterStartDocument()
601 sum += count; in xmlTextWriterStartDocument()
602 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartDocument()
603 if (count < 0) in xmlTextWriterStartDocument()
605 sum += count; in xmlTextWriterStartDocument()
609 count = xmlOutputBufferWriteString(writer->out, " standalone="); in xmlTextWriterStartDocument()
610 if (count < 0) in xmlTextWriterStartDocument()
612 sum += count; in xmlTextWriterStartDocument()
613 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartDocument()
614 if (count < 0) in xmlTextWriterStartDocument()
616 sum += count; in xmlTextWriterStartDocument()
617 count = xmlOutputBufferWriteString(writer->out, standalone); in xmlTextWriterStartDocument()
618 if (count < 0) in xmlTextWriterStartDocument()
620 sum += count; in xmlTextWriterStartDocument()
621 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartDocument()
622 if (count < 0) in xmlTextWriterStartDocument()
624 sum += count; in xmlTextWriterStartDocument()
627 count = xmlOutputBufferWriteString(writer->out, "?>\n"); in xmlTextWriterStartDocument()
628 if (count < 0) in xmlTextWriterStartDocument()
630 sum += count; in xmlTextWriterStartDocument()
647 int count; in xmlTextWriterEndDocument() local
667 count = xmlTextWriterEndElement(writer); in xmlTextWriterEndDocument()
668 if (count < 0) in xmlTextWriterEndDocument()
670 sum += count; in xmlTextWriterEndDocument()
674 count = xmlTextWriterEndPI(writer); in xmlTextWriterEndDocument()
675 if (count < 0) in xmlTextWriterEndDocument()
677 sum += count; in xmlTextWriterEndDocument()
680 count = xmlTextWriterEndCDATA(writer); in xmlTextWriterEndDocument()
681 if (count < 0) in xmlTextWriterEndDocument()
683 sum += count; in xmlTextWriterEndDocument()
694 count = xmlTextWriterEndDTD(writer); in xmlTextWriterEndDocument()
695 if (count < 0) in xmlTextWriterEndDocument()
697 sum += count; in xmlTextWriterEndDocument()
700 count = xmlTextWriterEndComment(writer); in xmlTextWriterEndDocument()
701 if (count < 0) in xmlTextWriterEndDocument()
703 sum += count; in xmlTextWriterEndDocument()
711 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterEndDocument()
712 if (count < 0) in xmlTextWriterEndDocument()
714 sum += count; in xmlTextWriterEndDocument()
733 int count; in xmlTextWriterStartComment() local
755 count = xmlTextWriterOutputNSDecl(writer); in xmlTextWriterStartComment()
756 if (count < 0) in xmlTextWriterStartComment()
758 sum += count; in xmlTextWriterStartComment()
759 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterStartComment()
760 if (count < 0) in xmlTextWriterStartComment()
762 sum += count; in xmlTextWriterStartComment()
764 count = in xmlTextWriterStartComment()
766 if (count < 0) in xmlTextWriterStartComment()
768 sum += count; in xmlTextWriterStartComment()
792 count = xmlTextWriterWriteIndent(writer); in xmlTextWriterStartComment()
793 if (count < 0) in xmlTextWriterStartComment()
795 sum += count; in xmlTextWriterStartComment()
798 count = xmlOutputBufferWriteString(writer->out, "<!--"); in xmlTextWriterStartComment()
799 if (count < 0) in xmlTextWriterStartComment()
801 sum += count; in xmlTextWriterStartComment()
817 int count; in xmlTextWriterEndComment() local
842 count = xmlOutputBufferWriteString(writer->out, "-->"); in xmlTextWriterEndComment()
843 if (count < 0) in xmlTextWriterEndComment()
845 sum += count; in xmlTextWriterEndComment()
852 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterEndComment()
853 if (count < 0) in xmlTextWriterEndComment()
855 sum += count; in xmlTextWriterEndComment()
932 int count; in xmlTextWriterWriteComment() local
936 count = xmlTextWriterStartComment(writer); in xmlTextWriterWriteComment()
937 if (count < 0) in xmlTextWriterWriteComment()
939 sum += count; in xmlTextWriterWriteComment()
940 count = xmlTextWriterWriteString(writer, content); in xmlTextWriterWriteComment()
941 if (count < 0) in xmlTextWriterWriteComment()
943 sum += count; in xmlTextWriterWriteComment()
944 count = xmlTextWriterEndComment(writer); in xmlTextWriterWriteComment()
945 if (count < 0) in xmlTextWriterWriteComment()
947 sum += count; in xmlTextWriterWriteComment()
964 int count; in xmlTextWriterStartElement() local
984 count = xmlTextWriterEndAttribute(writer); in xmlTextWriterStartElement()
985 if (count < 0) in xmlTextWriterStartElement()
987 sum += count; in xmlTextWriterStartElement()
991 count = xmlTextWriterOutputNSDecl(writer); in xmlTextWriterStartElement()
992 if (count < 0) in xmlTextWriterStartElement()
994 sum += count; in xmlTextWriterStartElement()
995 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterStartElement()
996 if (count < 0) in xmlTextWriterStartElement()
998 sum += count; in xmlTextWriterStartElement()
1000 count = in xmlTextWriterStartElement()
1030 count = xmlTextWriterWriteIndent(writer); in xmlTextWriterStartElement()
1031 sum += count; in xmlTextWriterStartElement()
1034 count = xmlOutputBufferWriteString(writer->out, "<"); in xmlTextWriterStartElement()
1035 if (count < 0) in xmlTextWriterStartElement()
1037 sum += count; in xmlTextWriterStartElement()
1038 count = in xmlTextWriterStartElement()
1040 if (count < 0) in xmlTextWriterStartElement()
1042 sum += count; in xmlTextWriterStartElement()
1063 int count; in xmlTextWriterStartElementNS() local
1078 count = xmlTextWriterStartElement(writer, buf); in xmlTextWriterStartElementNS()
1080 if (count < 0) in xmlTextWriterStartElementNS()
1082 sum += count; in xmlTextWriterStartElementNS()
1126 int count; in xmlTextWriterEndElement() local
1151 count = xmlTextWriterEndAttribute(writer); in xmlTextWriterEndElement()
1152 if (count < 0) { in xmlTextWriterEndElement()
1157 sum += count; in xmlTextWriterEndElement()
1161 count = xmlTextWriterOutputNSDecl(writer); in xmlTextWriterEndElement()
1162 if (count < 0) in xmlTextWriterEndElement()
1164 sum += count; in xmlTextWriterEndElement()
1168 count = xmlOutputBufferWriteString(writer->out, "/>"); in xmlTextWriterEndElement()
1169 if (count < 0) in xmlTextWriterEndElement()
1171 sum += count; in xmlTextWriterEndElement()
1175 count = xmlTextWriterWriteIndent(writer); in xmlTextWriterEndElement()
1176 sum += count; in xmlTextWriterEndElement()
1180 count = xmlOutputBufferWriteString(writer->out, "</"); in xmlTextWriterEndElement()
1181 if (count < 0) in xmlTextWriterEndElement()
1183 sum += count; in xmlTextWriterEndElement()
1184 count = xmlOutputBufferWriteString(writer->out, in xmlTextWriterEndElement()
1186 if (count < 0) in xmlTextWriterEndElement()
1188 sum += count; in xmlTextWriterEndElement()
1189 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterEndElement()
1190 if (count < 0) in xmlTextWriterEndElement()
1192 sum += count; in xmlTextWriterEndElement()
1199 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterEndElement()
1200 sum += count; in xmlTextWriterEndElement()
1218 int count; in xmlTextWriterFullEndElement() local
1237 count = xmlTextWriterEndAttribute(writer); in xmlTextWriterFullEndElement()
1238 if (count < 0) in xmlTextWriterFullEndElement()
1240 sum += count; in xmlTextWriterFullEndElement()
1244 count = xmlTextWriterOutputNSDecl(writer); in xmlTextWriterFullEndElement()
1245 if (count < 0) in xmlTextWriterFullEndElement()
1247 sum += count; in xmlTextWriterFullEndElement()
1249 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterFullEndElement()
1250 if (count < 0) in xmlTextWriterFullEndElement()
1252 sum += count; in xmlTextWriterFullEndElement()
1258 count = xmlTextWriterWriteIndent(writer); in xmlTextWriterFullEndElement()
1259 sum += count; in xmlTextWriterFullEndElement()
1263 count = xmlOutputBufferWriteString(writer->out, "</"); in xmlTextWriterFullEndElement()
1264 if (count < 0) in xmlTextWriterFullEndElement()
1266 sum += count; in xmlTextWriterFullEndElement()
1267 count = xmlOutputBufferWriteString(writer->out, in xmlTextWriterFullEndElement()
1269 if (count < 0) in xmlTextWriterFullEndElement()
1271 sum += count; in xmlTextWriterFullEndElement()
1272 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterFullEndElement()
1273 if (count < 0) in xmlTextWriterFullEndElement()
1275 sum += count; in xmlTextWriterFullEndElement()
1282 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterFullEndElement()
1283 sum += count; in xmlTextWriterFullEndElement()
1360 int count; in xmlTextWriterWriteRawLen() local
1381 count = xmlTextWriterHandleStateDependencies(writer, p); in xmlTextWriterWriteRawLen()
1382 if (count < 0) in xmlTextWriterWriteRawLen()
1384 sum += count; in xmlTextWriterWriteRawLen()
1391 count = in xmlTextWriterWriteRawLen()
1393 if (count < 0) in xmlTextWriterWriteRawLen()
1395 sum += count; in xmlTextWriterWriteRawLen()
1486 int count; in xmlTextWriterWriteString() local
1522 count = xmlTextWriterWriteRaw(writer, buf); in xmlTextWriterWriteString()
1527 if (count < 0) in xmlTextWriterWriteString()
1529 sum += count; in xmlTextWriterWriteString()
1559 int count; in xmlOutputBufferWriteBase64() local
1596 count = xmlOutputBufferWrite(out, 2, B64CRLF); in xmlOutputBufferWriteBase64()
1597 if (count == -1) in xmlOutputBufferWriteBase64()
1599 sum += count; in xmlOutputBufferWriteBase64()
1602 count = xmlOutputBufferWrite(out, 4, (const char *) ogroup); in xmlOutputBufferWriteBase64()
1603 if (count == -1) in xmlOutputBufferWriteBase64()
1605 sum += count; in xmlOutputBufferWriteBase64()
1632 int count; in xmlTextWriterWriteBase64() local
1645 count = xmlTextWriterHandleStateDependencies(writer, p); in xmlTextWriterWriteBase64()
1646 if (count < 0) in xmlTextWriterWriteBase64()
1648 sum += count; in xmlTextWriterWriteBase64()
1655 count = in xmlTextWriterWriteBase64()
1658 if (count < 0) in xmlTextWriterWriteBase64()
1660 sum += count; in xmlTextWriterWriteBase64()
1681 int count; in xmlOutputBufferWriteBinHex() local
1693 count = in xmlOutputBufferWriteBinHex()
1696 if (count == -1) in xmlOutputBufferWriteBinHex()
1698 sum += count; in xmlOutputBufferWriteBinHex()
1699 count = in xmlOutputBufferWriteBinHex()
1702 if (count == -1) in xmlOutputBufferWriteBinHex()
1704 sum += count; in xmlOutputBufferWriteBinHex()
1725 int count; in xmlTextWriterWriteBinHex() local
1738 count = xmlTextWriterHandleStateDependencies(writer, p); in xmlTextWriterWriteBinHex()
1739 if (count < 0) in xmlTextWriterWriteBinHex()
1741 sum += count; in xmlTextWriterWriteBinHex()
1748 count = in xmlTextWriterWriteBinHex()
1751 if (count < 0) in xmlTextWriterWriteBinHex()
1753 sum += count; in xmlTextWriterWriteBinHex()
1770 int count; in xmlTextWriterStartAttribute() local
1789 count = xmlTextWriterEndAttribute(writer); in xmlTextWriterStartAttribute()
1790 if (count < 0) in xmlTextWriterStartAttribute()
1792 sum += count; in xmlTextWriterStartAttribute()
1795 count = xmlOutputBufferWriteString(writer->out, " "); in xmlTextWriterStartAttribute()
1796 if (count < 0) in xmlTextWriterStartAttribute()
1798 sum += count; in xmlTextWriterStartAttribute()
1799 count = in xmlTextWriterStartAttribute()
1802 if (count < 0) in xmlTextWriterStartAttribute()
1804 sum += count; in xmlTextWriterStartAttribute()
1805 count = xmlOutputBufferWriteString(writer->out, "="); in xmlTextWriterStartAttribute()
1806 if (count < 0) in xmlTextWriterStartAttribute()
1808 sum += count; in xmlTextWriterStartAttribute()
1809 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartAttribute()
1810 if (count < 0) in xmlTextWriterStartAttribute()
1812 sum += count; in xmlTextWriterStartAttribute()
1838 int count; in xmlTextWriterStartAttributeNS() local
1905 count = xmlTextWriterStartAttribute(writer, buf); in xmlTextWriterStartAttributeNS()
1907 if (count < 0) in xmlTextWriterStartAttributeNS()
1909 sum += count; in xmlTextWriterStartAttributeNS()
1925 int count; in xmlTextWriterEndAttribute() local
1948 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterEndAttribute()
1949 if (count < 0) { in xmlTextWriterEndAttribute()
1952 sum += count; in xmlTextWriterEndAttribute()
2034 int count; in xmlTextWriterWriteAttribute() local
2038 count = xmlTextWriterStartAttribute(writer, name); in xmlTextWriterWriteAttribute()
2039 if (count < 0) in xmlTextWriterWriteAttribute()
2041 sum += count; in xmlTextWriterWriteAttribute()
2042 count = xmlTextWriterWriteString(writer, content); in xmlTextWriterWriteAttribute()
2043 if (count < 0) in xmlTextWriterWriteAttribute()
2045 sum += count; in xmlTextWriterWriteAttribute()
2046 count = xmlTextWriterEndAttribute(writer); in xmlTextWriterWriteAttribute()
2047 if (count < 0) in xmlTextWriterWriteAttribute()
2049 sum += count; in xmlTextWriterWriteAttribute()
2141 int count; in xmlTextWriterWriteAttributeNS() local
2148 count = xmlTextWriterStartAttributeNS(writer, prefix, name, namespaceURI); in xmlTextWriterWriteAttributeNS()
2149 if (count < 0) in xmlTextWriterWriteAttributeNS()
2151 sum += count; in xmlTextWriterWriteAttributeNS()
2152 count = xmlTextWriterWriteString(writer, content); in xmlTextWriterWriteAttributeNS()
2153 if (count < 0) in xmlTextWriterWriteAttributeNS()
2155 sum += count; in xmlTextWriterWriteAttributeNS()
2156 count = xmlTextWriterEndAttribute(writer); in xmlTextWriterWriteAttributeNS()
2157 if (count < 0) in xmlTextWriterWriteAttributeNS()
2159 sum += count; in xmlTextWriterWriteAttributeNS()
2237 int count; in xmlTextWriterWriteElement() local
2241 count = xmlTextWriterStartElement(writer, name); in xmlTextWriterWriteElement()
2242 if (count == -1) in xmlTextWriterWriteElement()
2244 sum += count; in xmlTextWriterWriteElement()
2246 count = xmlTextWriterWriteString(writer, content); in xmlTextWriterWriteElement()
2247 if (count == -1) in xmlTextWriterWriteElement()
2249 sum += count; in xmlTextWriterWriteElement()
2251 count = xmlTextWriterEndElement(writer); in xmlTextWriterWriteElement()
2252 if (count == -1) in xmlTextWriterWriteElement()
2254 sum += count; in xmlTextWriterWriteElement()
2346 int count; in xmlTextWriterWriteElementNS() local
2353 count = in xmlTextWriterWriteElementNS()
2355 if (count < 0) in xmlTextWriterWriteElementNS()
2357 sum += count; in xmlTextWriterWriteElementNS()
2358 count = xmlTextWriterWriteString(writer, content); in xmlTextWriterWriteElementNS()
2359 if (count == -1) in xmlTextWriterWriteElementNS()
2361 sum += count; in xmlTextWriterWriteElementNS()
2362 count = xmlTextWriterEndElement(writer); in xmlTextWriterWriteElementNS()
2363 if (count == -1) in xmlTextWriterWriteElementNS()
2365 sum += count; in xmlTextWriterWriteElementNS()
2382 int count; in xmlTextWriterStartPI() local
2403 count = xmlTextWriterEndAttribute(writer); in xmlTextWriterStartPI()
2404 if (count < 0) in xmlTextWriterStartPI()
2406 sum += count; in xmlTextWriterStartPI()
2410 count = xmlTextWriterOutputNSDecl(writer); in xmlTextWriterStartPI()
2411 if (count < 0) in xmlTextWriterStartPI()
2413 sum += count; in xmlTextWriterStartPI()
2414 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterStartPI()
2415 if (count < 0) in xmlTextWriterStartPI()
2417 sum += count; in xmlTextWriterStartPI()
2454 count = xmlOutputBufferWriteString(writer->out, "<?"); in xmlTextWriterStartPI()
2455 if (count < 0) in xmlTextWriterStartPI()
2457 sum += count; in xmlTextWriterStartPI()
2458 count = in xmlTextWriterStartPI()
2460 if (count < 0) in xmlTextWriterStartPI()
2462 sum += count; in xmlTextWriterStartPI()
2478 int count; in xmlTextWriterEndPI() local
2498 count = xmlOutputBufferWriteString(writer->out, "?>"); in xmlTextWriterEndPI()
2499 if (count < 0) in xmlTextWriterEndPI()
2501 sum += count; in xmlTextWriterEndPI()
2508 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterEndPI()
2509 if (count < 0) in xmlTextWriterEndPI()
2511 sum += count; in xmlTextWriterEndPI()
2590 int count; in xmlTextWriterWritePI() local
2594 count = xmlTextWriterStartPI(writer, target); in xmlTextWriterWritePI()
2595 if (count == -1) in xmlTextWriterWritePI()
2597 sum += count; in xmlTextWriterWritePI()
2599 count = xmlTextWriterWriteString(writer, content); in xmlTextWriterWritePI()
2600 if (count == -1) in xmlTextWriterWritePI()
2602 sum += count; in xmlTextWriterWritePI()
2604 count = xmlTextWriterEndPI(writer); in xmlTextWriterWritePI()
2605 if (count == -1) in xmlTextWriterWritePI()
2607 sum += count; in xmlTextWriterWritePI()
2623 int count; in xmlTextWriterStartCDATA() local
2643 count = xmlTextWriterEndAttribute(writer); in xmlTextWriterStartCDATA()
2644 if (count < 0) in xmlTextWriterStartCDATA()
2646 sum += count; in xmlTextWriterStartCDATA()
2650 count = xmlTextWriterOutputNSDecl(writer); in xmlTextWriterStartCDATA()
2651 if (count < 0) in xmlTextWriterStartCDATA()
2653 sum += count; in xmlTextWriterStartCDATA()
2654 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterStartCDATA()
2655 if (count < 0) in xmlTextWriterStartCDATA()
2657 sum += count; in xmlTextWriterStartCDATA()
2683 count = xmlOutputBufferWriteString(writer->out, "<![CDATA["); in xmlTextWriterStartCDATA()
2684 if (count < 0) in xmlTextWriterStartCDATA()
2686 sum += count; in xmlTextWriterStartCDATA()
2702 int count; in xmlTextWriterEndCDATA() local
2721 count = xmlOutputBufferWriteString(writer->out, "]]>"); in xmlTextWriterEndCDATA()
2722 if (count < 0) in xmlTextWriterEndCDATA()
2724 sum += count; in xmlTextWriterEndCDATA()
2801 int count; in xmlTextWriterWriteCDATA() local
2805 count = xmlTextWriterStartCDATA(writer); in xmlTextWriterWriteCDATA()
2806 if (count == -1) in xmlTextWriterWriteCDATA()
2808 sum += count; in xmlTextWriterWriteCDATA()
2810 count = xmlTextWriterWriteString(writer, content); in xmlTextWriterWriteCDATA()
2811 if (count == -1) in xmlTextWriterWriteCDATA()
2813 sum += count; in xmlTextWriterWriteCDATA()
2815 count = xmlTextWriterEndCDATA(writer); in xmlTextWriterWriteCDATA()
2816 if (count == -1) in xmlTextWriterWriteCDATA()
2818 sum += count; in xmlTextWriterWriteCDATA()
2839 int count; in xmlTextWriterStartDTD() local
2874 count = xmlOutputBufferWriteString(writer->out, "<!DOCTYPE "); in xmlTextWriterStartDTD()
2875 if (count < 0) in xmlTextWriterStartDTD()
2877 sum += count; in xmlTextWriterStartDTD()
2878 count = xmlOutputBufferWriteString(writer->out, (const char *) name); in xmlTextWriterStartDTD()
2879 if (count < 0) in xmlTextWriterStartDTD()
2881 sum += count; in xmlTextWriterStartDTD()
2891 count = xmlOutputBufferWrite(writer->out, 1, "\n"); in xmlTextWriterStartDTD()
2893 count = xmlOutputBufferWrite(writer->out, 1, " "); in xmlTextWriterStartDTD()
2894 if (count < 0) in xmlTextWriterStartDTD()
2896 sum += count; in xmlTextWriterStartDTD()
2898 count = xmlOutputBufferWriteString(writer->out, "PUBLIC "); in xmlTextWriterStartDTD()
2899 if (count < 0) in xmlTextWriterStartDTD()
2901 sum += count; in xmlTextWriterStartDTD()
2903 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartDTD()
2904 if (count < 0) in xmlTextWriterStartDTD()
2906 sum += count; in xmlTextWriterStartDTD()
2908 count = in xmlTextWriterStartDTD()
2910 if (count < 0) in xmlTextWriterStartDTD()
2912 sum += count; in xmlTextWriterStartDTD()
2914 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartDTD()
2915 if (count < 0) in xmlTextWriterStartDTD()
2917 sum += count; in xmlTextWriterStartDTD()
2923 count = xmlOutputBufferWrite(writer->out, 1, "\n"); in xmlTextWriterStartDTD()
2925 count = xmlOutputBufferWrite(writer->out, 1, " "); in xmlTextWriterStartDTD()
2926 if (count < 0) in xmlTextWriterStartDTD()
2928 sum += count; in xmlTextWriterStartDTD()
2929 count = xmlOutputBufferWriteString(writer->out, "SYSTEM "); in xmlTextWriterStartDTD()
2930 if (count < 0) in xmlTextWriterStartDTD()
2932 sum += count; in xmlTextWriterStartDTD()
2935 count = xmlOutputBufferWriteString(writer->out, "\n "); in xmlTextWriterStartDTD()
2937 count = xmlOutputBufferWrite(writer->out, 1, " "); in xmlTextWriterStartDTD()
2938 if (count < 0) in xmlTextWriterStartDTD()
2940 sum += count; in xmlTextWriterStartDTD()
2943 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartDTD()
2944 if (count < 0) in xmlTextWriterStartDTD()
2946 sum += count; in xmlTextWriterStartDTD()
2948 count = in xmlTextWriterStartDTD()
2950 if (count < 0) in xmlTextWriterStartDTD()
2952 sum += count; in xmlTextWriterStartDTD()
2954 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartDTD()
2955 if (count < 0) in xmlTextWriterStartDTD()
2957 sum += count; in xmlTextWriterStartDTD()
2975 int count; in xmlTextWriterEndDTD() local
2994 count = xmlOutputBufferWriteString(writer->out, "]"); in xmlTextWriterEndDTD()
2995 if (count < 0) in xmlTextWriterEndDTD()
2997 sum += count; in xmlTextWriterEndDTD()
3000 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterEndDTD()
3003 if (count < 0) in xmlTextWriterEndDTD()
3005 sum += count; in xmlTextWriterEndDTD()
3006 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterEndDTD()
3013 count = xmlTextWriterEndDTDElement(writer); in xmlTextWriterEndDTD()
3017 count = xmlTextWriterEndDTDAttlist(writer); in xmlTextWriterEndDTD()
3022 count = xmlTextWriterEndDTDEntity(writer); in xmlTextWriterEndDTD()
3025 count = xmlTextWriterEndComment(writer); in xmlTextWriterEndDTD()
3032 if (count < 0) in xmlTextWriterEndDTD()
3034 sum += count; in xmlTextWriterEndDTD()
3125 int count; in xmlTextWriterWriteDTD() local
3129 count = xmlTextWriterStartDTD(writer, name, pubid, sysid); in xmlTextWriterWriteDTD()
3130 if (count == -1) in xmlTextWriterWriteDTD()
3132 sum += count; in xmlTextWriterWriteDTD()
3134 count = xmlTextWriterWriteString(writer, subset); in xmlTextWriterWriteDTD()
3135 if (count == -1) in xmlTextWriterWriteDTD()
3137 sum += count; in xmlTextWriterWriteDTD()
3139 count = xmlTextWriterEndDTD(writer); in xmlTextWriterWriteDTD()
3140 if (count == -1) in xmlTextWriterWriteDTD()
3142 sum += count; in xmlTextWriterWriteDTD()
3159 int count; in xmlTextWriterStartDTDElement() local
3177 count = xmlOutputBufferWriteString(writer->out, " ["); in xmlTextWriterStartDTDElement()
3178 if (count < 0) in xmlTextWriterStartDTDElement()
3180 sum += count; in xmlTextWriterStartDTDElement()
3182 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterStartDTDElement()
3183 if (count < 0) in xmlTextWriterStartDTDElement()
3185 sum += count; in xmlTextWriterStartDTDElement()
3217 count = xmlTextWriterWriteIndent(writer); in xmlTextWriterStartDTDElement()
3218 if (count < 0) in xmlTextWriterStartDTDElement()
3220 sum += count; in xmlTextWriterStartDTDElement()
3223 count = xmlOutputBufferWriteString(writer->out, "<!ELEMENT "); in xmlTextWriterStartDTDElement()
3224 if (count < 0) in xmlTextWriterStartDTDElement()
3226 sum += count; in xmlTextWriterStartDTDElement()
3227 count = xmlOutputBufferWriteString(writer->out, (const char *) name); in xmlTextWriterStartDTDElement()
3228 if (count < 0) in xmlTextWriterStartDTDElement()
3230 sum += count; in xmlTextWriterStartDTDElement()
3246 int count; in xmlTextWriterEndDTDElement() local
3266 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterEndDTDElement()
3267 if (count < 0) in xmlTextWriterEndDTDElement()
3269 sum += count; in xmlTextWriterEndDTDElement()
3276 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterEndDTDElement()
3277 if (count < 0) in xmlTextWriterEndDTDElement()
3279 sum += count; in xmlTextWriterEndDTDElement()
3359 int count; in xmlTextWriterWriteDTDElement() local
3366 count = xmlTextWriterStartDTDElement(writer, name); in xmlTextWriterWriteDTDElement()
3367 if (count == -1) in xmlTextWriterWriteDTDElement()
3369 sum += count; in xmlTextWriterWriteDTDElement()
3371 count = xmlTextWriterWriteString(writer, content); in xmlTextWriterWriteDTDElement()
3372 if (count == -1) in xmlTextWriterWriteDTDElement()
3374 sum += count; in xmlTextWriterWriteDTDElement()
3376 count = xmlTextWriterEndDTDElement(writer); in xmlTextWriterWriteDTDElement()
3377 if (count == -1) in xmlTextWriterWriteDTDElement()
3379 sum += count; in xmlTextWriterWriteDTDElement()
3396 int count; in xmlTextWriterStartDTDAttlist() local
3414 count = xmlOutputBufferWriteString(writer->out, " ["); in xmlTextWriterStartDTDAttlist()
3415 if (count < 0) in xmlTextWriterStartDTDAttlist()
3417 sum += count; in xmlTextWriterStartDTDAttlist()
3419 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterStartDTDAttlist()
3420 if (count < 0) in xmlTextWriterStartDTDAttlist()
3422 sum += count; in xmlTextWriterStartDTDAttlist()
3454 count = xmlTextWriterWriteIndent(writer); in xmlTextWriterStartDTDAttlist()
3455 if (count < 0) in xmlTextWriterStartDTDAttlist()
3457 sum += count; in xmlTextWriterStartDTDAttlist()
3460 count = xmlOutputBufferWriteString(writer->out, "<!ATTLIST "); in xmlTextWriterStartDTDAttlist()
3461 if (count < 0) in xmlTextWriterStartDTDAttlist()
3463 sum += count; in xmlTextWriterStartDTDAttlist()
3464 count = xmlOutputBufferWriteString(writer->out, (const char *) name); in xmlTextWriterStartDTDAttlist()
3465 if (count < 0) in xmlTextWriterStartDTDAttlist()
3467 sum += count; in xmlTextWriterStartDTDAttlist()
3483 int count; in xmlTextWriterEndDTDAttlist() local
3503 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterEndDTDAttlist()
3504 if (count < 0) in xmlTextWriterEndDTDAttlist()
3506 sum += count; in xmlTextWriterEndDTDAttlist()
3513 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterEndDTDAttlist()
3514 if (count < 0) in xmlTextWriterEndDTDAttlist()
3516 sum += count; in xmlTextWriterEndDTDAttlist()
3596 int count; in xmlTextWriterWriteDTDAttlist() local
3603 count = xmlTextWriterStartDTDAttlist(writer, name); in xmlTextWriterWriteDTDAttlist()
3604 if (count == -1) in xmlTextWriterWriteDTDAttlist()
3606 sum += count; in xmlTextWriterWriteDTDAttlist()
3608 count = xmlTextWriterWriteString(writer, content); in xmlTextWriterWriteDTDAttlist()
3609 if (count == -1) in xmlTextWriterWriteDTDAttlist()
3611 sum += count; in xmlTextWriterWriteDTDAttlist()
3613 count = xmlTextWriterEndDTDAttlist(writer); in xmlTextWriterWriteDTDAttlist()
3614 if (count == -1) in xmlTextWriterWriteDTDAttlist()
3616 sum += count; in xmlTextWriterWriteDTDAttlist()
3635 int count; in xmlTextWriterStartDTDEntity() local
3651 count = xmlOutputBufferWriteString(writer->out, " ["); in xmlTextWriterStartDTDEntity()
3652 if (count < 0) in xmlTextWriterStartDTDEntity()
3654 sum += count; in xmlTextWriterStartDTDEntity()
3656 count = in xmlTextWriterStartDTDEntity()
3658 if (count < 0) in xmlTextWriterStartDTDEntity()
3660 sum += count; in xmlTextWriterStartDTDEntity()
3697 count = xmlTextWriterWriteIndent(writer); in xmlTextWriterStartDTDEntity()
3698 if (count < 0) in xmlTextWriterStartDTDEntity()
3700 sum += count; in xmlTextWriterStartDTDEntity()
3703 count = xmlOutputBufferWriteString(writer->out, "<!ENTITY "); in xmlTextWriterStartDTDEntity()
3704 if (count < 0) in xmlTextWriterStartDTDEntity()
3706 sum += count; in xmlTextWriterStartDTDEntity()
3709 count = xmlOutputBufferWriteString(writer->out, "% "); in xmlTextWriterStartDTDEntity()
3710 if (count < 0) in xmlTextWriterStartDTDEntity()
3712 sum += count; in xmlTextWriterStartDTDEntity()
3715 count = xmlOutputBufferWriteString(writer->out, (const char *) name); in xmlTextWriterStartDTDEntity()
3716 if (count < 0) in xmlTextWriterStartDTDEntity()
3718 sum += count; in xmlTextWriterStartDTDEntity()
3734 int count; in xmlTextWriterEndDTDEntity() local
3753 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterEndDTDEntity()
3754 if (count < 0) in xmlTextWriterEndDTDEntity()
3756 sum += count; in xmlTextWriterEndDTDEntity()
3759 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterEndDTDEntity()
3760 if (count < 0) in xmlTextWriterEndDTDEntity()
3762 sum += count; in xmlTextWriterEndDTDEntity()
3769 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterEndDTDEntity()
3770 if (count < 0) in xmlTextWriterEndDTDEntity()
3772 sum += count; in xmlTextWriterEndDTDEntity()
3897 int count; in xmlTextWriterWriteDTDInternalEntity() local
3904 count = xmlTextWriterStartDTDEntity(writer, pe, name); in xmlTextWriterWriteDTDInternalEntity()
3905 if (count == -1) in xmlTextWriterWriteDTDInternalEntity()
3907 sum += count; in xmlTextWriterWriteDTDInternalEntity()
3909 count = xmlTextWriterWriteString(writer, content); in xmlTextWriterWriteDTDInternalEntity()
3910 if (count == -1) in xmlTextWriterWriteDTDInternalEntity()
3912 sum += count; in xmlTextWriterWriteDTDInternalEntity()
3914 count = xmlTextWriterEndDTDEntity(writer); in xmlTextWriterWriteDTDInternalEntity()
3915 if (count == -1) in xmlTextWriterWriteDTDInternalEntity()
3917 sum += count; in xmlTextWriterWriteDTDInternalEntity()
3943 int count; in xmlTextWriterWriteDTDExternalEntity() local
3952 count = xmlTextWriterStartDTDEntity(writer, pe, name); in xmlTextWriterWriteDTDExternalEntity()
3953 if (count == -1) in xmlTextWriterWriteDTDExternalEntity()
3955 sum += count; in xmlTextWriterWriteDTDExternalEntity()
3957 count = in xmlTextWriterWriteDTDExternalEntity()
3960 if (count < 0) in xmlTextWriterWriteDTDExternalEntity()
3962 sum += count; in xmlTextWriterWriteDTDExternalEntity()
3964 count = xmlTextWriterEndDTDEntity(writer); in xmlTextWriterWriteDTDExternalEntity()
3965 if (count == -1) in xmlTextWriterWriteDTDExternalEntity()
3967 sum += count; in xmlTextWriterWriteDTDExternalEntity()
3989 int count; in xmlTextWriterWriteDTDExternalEntityContents() local
4035 count = xmlOutputBufferWriteString(writer->out, " PUBLIC "); in xmlTextWriterWriteDTDExternalEntityContents()
4036 if (count < 0) in xmlTextWriterWriteDTDExternalEntityContents()
4038 sum += count; in xmlTextWriterWriteDTDExternalEntityContents()
4040 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterWriteDTDExternalEntityContents()
4041 if (count < 0) in xmlTextWriterWriteDTDExternalEntityContents()
4043 sum += count; in xmlTextWriterWriteDTDExternalEntityContents()
4045 count = in xmlTextWriterWriteDTDExternalEntityContents()
4047 if (count < 0) in xmlTextWriterWriteDTDExternalEntityContents()
4049 sum += count; in xmlTextWriterWriteDTDExternalEntityContents()
4051 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterWriteDTDExternalEntityContents()
4052 if (count < 0) in xmlTextWriterWriteDTDExternalEntityContents()
4054 sum += count; in xmlTextWriterWriteDTDExternalEntityContents()
4059 count = xmlOutputBufferWriteString(writer->out, " SYSTEM"); in xmlTextWriterWriteDTDExternalEntityContents()
4060 if (count < 0) in xmlTextWriterWriteDTDExternalEntityContents()
4062 sum += count; in xmlTextWriterWriteDTDExternalEntityContents()
4065 count = xmlOutputBufferWriteString(writer->out, " "); in xmlTextWriterWriteDTDExternalEntityContents()
4066 if (count < 0) in xmlTextWriterWriteDTDExternalEntityContents()
4068 sum += count; in xmlTextWriterWriteDTDExternalEntityContents()
4070 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterWriteDTDExternalEntityContents()
4071 if (count < 0) in xmlTextWriterWriteDTDExternalEntityContents()
4073 sum += count; in xmlTextWriterWriteDTDExternalEntityContents()
4075 count = in xmlTextWriterWriteDTDExternalEntityContents()
4077 if (count < 0) in xmlTextWriterWriteDTDExternalEntityContents()
4079 sum += count; in xmlTextWriterWriteDTDExternalEntityContents()
4081 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterWriteDTDExternalEntityContents()
4082 if (count < 0) in xmlTextWriterWriteDTDExternalEntityContents()
4084 sum += count; in xmlTextWriterWriteDTDExternalEntityContents()
4088 count = xmlOutputBufferWriteString(writer->out, " NDATA "); in xmlTextWriterWriteDTDExternalEntityContents()
4089 if (count < 0) in xmlTextWriterWriteDTDExternalEntityContents()
4091 sum += count; in xmlTextWriterWriteDTDExternalEntityContents()
4093 count = in xmlTextWriterWriteDTDExternalEntityContents()
4096 if (count < 0) in xmlTextWriterWriteDTDExternalEntityContents()
4098 sum += count; in xmlTextWriterWriteDTDExternalEntityContents()
4120 int count; in xmlTextWriterWriteDTDNotation() local
4138 count = xmlOutputBufferWriteString(writer->out, " ["); in xmlTextWriterWriteDTDNotation()
4139 if (count < 0) in xmlTextWriterWriteDTDNotation()
4141 sum += count; in xmlTextWriterWriteDTDNotation()
4143 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterWriteDTDNotation()
4144 if (count < 0) in xmlTextWriterWriteDTDNotation()
4146 sum += count; in xmlTextWriterWriteDTDNotation()
4158 count = xmlTextWriterWriteIndent(writer); in xmlTextWriterWriteDTDNotation()
4159 if (count < 0) in xmlTextWriterWriteDTDNotation()
4161 sum += count; in xmlTextWriterWriteDTDNotation()
4164 count = xmlOutputBufferWriteString(writer->out, "<!NOTATION "); in xmlTextWriterWriteDTDNotation()
4165 if (count < 0) in xmlTextWriterWriteDTDNotation()
4167 sum += count; in xmlTextWriterWriteDTDNotation()
4168 count = xmlOutputBufferWriteString(writer->out, (const char *) name); in xmlTextWriterWriteDTDNotation()
4169 if (count < 0) in xmlTextWriterWriteDTDNotation()
4171 sum += count; in xmlTextWriterWriteDTDNotation()
4174 count = xmlOutputBufferWriteString(writer->out, " PUBLIC "); in xmlTextWriterWriteDTDNotation()
4175 if (count < 0) in xmlTextWriterWriteDTDNotation()
4177 sum += count; in xmlTextWriterWriteDTDNotation()
4178 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterWriteDTDNotation()
4179 if (count < 0) in xmlTextWriterWriteDTDNotation()
4181 sum += count; in xmlTextWriterWriteDTDNotation()
4182 count = in xmlTextWriterWriteDTDNotation()
4184 if (count < 0) in xmlTextWriterWriteDTDNotation()
4186 sum += count; in xmlTextWriterWriteDTDNotation()
4187 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterWriteDTDNotation()
4188 if (count < 0) in xmlTextWriterWriteDTDNotation()
4190 sum += count; in xmlTextWriterWriteDTDNotation()
4195 count = xmlOutputBufferWriteString(writer->out, " SYSTEM"); in xmlTextWriterWriteDTDNotation()
4196 if (count < 0) in xmlTextWriterWriteDTDNotation()
4198 sum += count; in xmlTextWriterWriteDTDNotation()
4200 count = xmlOutputBufferWriteString(writer->out, " "); in xmlTextWriterWriteDTDNotation()
4201 if (count < 0) in xmlTextWriterWriteDTDNotation()
4203 sum += count; in xmlTextWriterWriteDTDNotation()
4204 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterWriteDTDNotation()
4205 if (count < 0) in xmlTextWriterWriteDTDNotation()
4207 sum += count; in xmlTextWriterWriteDTDNotation()
4208 count = in xmlTextWriterWriteDTDNotation()
4210 if (count < 0) in xmlTextWriterWriteDTDNotation()
4212 sum += count; in xmlTextWriterWriteDTDNotation()
4213 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterWriteDTDNotation()
4214 if (count < 0) in xmlTextWriterWriteDTDNotation()
4216 sum += count; in xmlTextWriterWriteDTDNotation()
4219 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterWriteDTDNotation()
4220 if (count < 0) in xmlTextWriterWriteDTDNotation()
4222 sum += count; in xmlTextWriterWriteDTDNotation()
4238 int count; in xmlTextWriterFlush() local
4244 count = 0; in xmlTextWriterFlush()
4246 count = xmlOutputBufferFlush(writer->out); in xmlTextWriterFlush()
4248 return count; in xmlTextWriterFlush()
4320 int count; in xmlTextWriterOutputNSDecl() local
4339 count = xmlTextWriterWriteAttribute(writer, prefix, namespaceURI); in xmlTextWriterOutputNSDecl()
4343 if (count < 0) { in xmlTextWriterOutputNSDecl()
4348 sum += count; in xmlTextWriterOutputNSDecl()
4476 int count; in xmlTextWriterVSprintf() local
4489 while (((count = vsnprintf((char *) buf, size, format, locarg)) < 0) in xmlTextWriterVSprintf()
4490 || (count == size - 1) || (count == size) || (count > size)) { in xmlTextWriterVSprintf()
4679 int count; in xmlTextWriterHandleStateDependencies() local
4696 count = xmlTextWriterOutputNSDecl(writer); in xmlTextWriterHandleStateDependencies()
4697 if (count < 0) in xmlTextWriterHandleStateDependencies()
4699 sum += count; in xmlTextWriterHandleStateDependencies()
4732 count = xmlOutputBufferWriteString(writer->out, extra); in xmlTextWriterHandleStateDependencies()
4733 if (count < 0) in xmlTextWriterHandleStateDependencies()
4735 sum += count; in xmlTextWriterHandleStateDependencies()