Lines Matching refs:fp
83 FILE *fp; member
94 FILE *fp = ((XmlwfUserData *)userData)->fp; in characterData() local
98 fputts(T("&"), fp); in characterData()
101 fputts(T("<"), fp); in characterData()
104 fputts(T(">"), fp); in characterData()
108 fputts(T("
"), fp); in characterData()
112 fputts(T("""), fp); in characterData()
117 ftprintf(fp, T("&#%d;"), *s); in characterData()
121 puttc(*s, fp); in characterData()
128 attributeValue(FILE *fp, const XML_Char *s) { in attributeValue() argument
129 puttc(T('='), fp); in attributeValue()
130 puttc(T('"'), fp); in attributeValue()
136 puttc(T('"'), fp); in attributeValue()
139 fputts(T("&"), fp); in attributeValue()
142 fputts(T("<"), fp); in attributeValue()
145 fputts(T("""), fp); in attributeValue()
149 fputts(T("	"), fp); in attributeValue()
152 fputts(T("
"), fp); in attributeValue()
155 fputts(T("
"), fp); in attributeValue()
159 fputts(T(">"), fp); in attributeValue()
164 ftprintf(fp, T("&#%d;"), *s); in attributeValue()
168 puttc(*s, fp); in attributeValue()
187 FILE *fp = ((XmlwfUserData *)userData)->fp; in startElement() local
188 puttc(T('<'), fp); in startElement()
189 fputts(name, fp); in startElement()
198 puttc(T(' '), fp); in startElement()
199 fputts(*atts++, fp); in startElement()
200 attributeValue(fp, *atts); in startElement()
203 puttc(T('>'), fp); in startElement()
208 FILE *fp = ((XmlwfUserData *)userData)->fp; in endElement() local
209 puttc(T('<'), fp); in endElement()
210 puttc(T('/'), fp); in endElement()
211 fputts(name, fp); in endElement()
212 puttc(T('>'), fp); in endElement()
231 FILE *fp = ((XmlwfUserData *)userData)->fp; in startElementNS() local
233 puttc(T('<'), fp); in startElementNS()
237 fputts(T("n1:"), fp); in startElementNS()
238 fputts(sep + 1, fp); in startElementNS()
239 fputts(T(" xmlns:n1"), fp); in startElementNS()
240 attributeValue(fp, name); in startElementNS()
243 fputts(name, fp); in startElementNS()
256 puttc(T(' '), fp); in startElementNS()
258 ftprintf(fp, T("n%d:"), nsi); in startElementNS()
259 fputts(sep + 1, fp); in startElementNS()
261 fputts(name, fp); in startElementNS()
262 attributeValue(fp, *atts); in startElementNS()
264 ftprintf(fp, T(" xmlns:n%d"), nsi++); in startElementNS()
265 attributeValue(fp, name); in startElementNS()
269 puttc(T('>'), fp); in startElementNS()
274 FILE *fp = ((XmlwfUserData *)userData)->fp; in endElementNS() local
276 puttc(T('<'), fp); in endElementNS()
277 puttc(T('/'), fp); in endElementNS()
280 fputts(T("n1:"), fp); in endElementNS()
281 fputts(sep + 1, fp); in endElementNS()
283 fputts(name, fp); in endElementNS()
284 puttc(T('>'), fp); in endElementNS()
292 FILE *fp = ((XmlwfUserData *)userData)->fp; in processingInstruction() local
293 puttc(T('<'), fp); in processingInstruction()
294 puttc(T('?'), fp); in processingInstruction()
295 fputts(target, fp); in processingInstruction()
296 puttc(T(' '), fp); in processingInstruction()
297 fputts(data, fp); in processingInstruction()
298 puttc(T('?'), fp); in processingInstruction()
299 puttc(T('>'), fp); in processingInstruction()
409 fputts(T("<!DOCTYPE "), data->fp); in endDoctypeDecl()
410 fputts(data->currentDoctypeName, data->fp); in endDoctypeDecl()
411 fputts(T(" [\n"), data->fp); in endDoctypeDecl()
415 fputts(T("<!NOTATION "), data->fp); in endDoctypeDecl()
416 fputts(notations[i]->notationName, data->fp); in endDoctypeDecl()
418 fputts(T(" PUBLIC '"), data->fp); in endDoctypeDecl()
419 fputts(notations[i]->publicId, data->fp); in endDoctypeDecl()
420 puttc(T('\''), data->fp); in endDoctypeDecl()
422 puttc(T(' '), data->fp); in endDoctypeDecl()
423 puttc(T('\''), data->fp); in endDoctypeDecl()
424 fputts(notations[i]->systemId, data->fp); in endDoctypeDecl()
425 puttc(T('\''), data->fp); in endDoctypeDecl()
428 fputts(T(" SYSTEM '"), data->fp); in endDoctypeDecl()
429 fputts(notations[i]->systemId, data->fp); in endDoctypeDecl()
430 puttc(T('\''), data->fp); in endDoctypeDecl()
432 puttc(T('>'), data->fp); in endDoctypeDecl()
433 puttc(T('\n'), data->fp); in endDoctypeDecl()
437 fputts(T("]>\n"), data->fp); in endDoctypeDecl()
552 FILE *fp = ((XmlwfUserData *)XML_GetUserData((XML_Parser)userData))->fp; in markup() local
554 puttc(*s, fp); in markup()
560 FILE *fp = ((XmlwfUserData *)XML_GetUserData(parser))->fp; in metaLocation() local
562 ftprintf(fp, T(" uri=\"%s\""), uri); in metaLocation()
563 ftprintf(fp, in metaLocation()
575 ((XmlwfUserData *)XML_GetUserData((XML_Parser)userData))->fp); in metaStartDocument()
581 ((XmlwfUserData *)XML_GetUserData((XML_Parser)userData))->fp); in metaEndDocument()
588 FILE *fp = data->fp; in metaStartElement() local
598 ftprintf(fp, T("<starttag name=\"%s\""), name); in metaStartElement()
601 fputts(T(">\n"), fp); in metaStartElement()
603 ftprintf(fp, T("<attribute name=\"%s\" value=\""), atts[0]); in metaStartElement()
606 fputts(T("\" defaulted=\"yes\"/>\n"), fp); in metaStartElement()
608 fputts(T("\" id=\"yes\"/>\n"), fp); in metaStartElement()
610 fputts(T("\"/>\n"), fp); in metaStartElement()
612 fputts(T("</starttag>\n"), fp); in metaStartElement()
614 fputts(T("/>\n"), fp); in metaStartElement()
621 FILE *fp = data->fp; in metaEndElement() local
622 ftprintf(fp, T("<endtag name=\"%s\""), name); in metaEndElement()
624 fputts(T("/>\n"), fp); in metaEndElement()
632 FILE *fp = usrData->fp; in metaProcessingInstruction() local
633 ftprintf(fp, T("<pi target=\"%s\" data=\""), target); in metaProcessingInstruction()
635 puttc(T('"'), fp); in metaProcessingInstruction()
637 fputts(T("/>\n"), fp); in metaProcessingInstruction()
644 FILE *fp = usrData->fp; in metaComment() local
645 fputts(T("<comment data=\""), fp); in metaComment()
647 puttc(T('"'), fp); in metaComment()
649 fputts(T("/>\n"), fp); in metaComment()
656 FILE *fp = data->fp; in metaStartCdataSection() local
657 fputts(T("<startcdata"), fp); in metaStartCdataSection()
659 fputts(T("/>\n"), fp); in metaStartCdataSection()
666 FILE *fp = data->fp; in metaEndCdataSection() local
667 fputts(T("<endcdata"), fp); in metaEndCdataSection()
669 fputts(T("/>\n"), fp); in metaEndCdataSection()
676 FILE *fp = data->fp; in metaCharacterData() local
677 fputts(T("<chars str=\""), fp); in metaCharacterData()
679 puttc(T('"'), fp); in metaCharacterData()
681 fputts(T("/>\n"), fp); in metaCharacterData()
690 FILE *fp = data->fp; in metaStartDoctypeDecl() local
694 ftprintf(fp, T("<startdoctype name=\"%s\""), doctypeName); in metaStartDoctypeDecl()
696 fputts(T("/>\n"), fp); in metaStartDoctypeDecl()
703 FILE *fp = data->fp; in metaEndDoctypeDecl() local
704 fputts(T("<enddoctype"), fp); in metaEndDoctypeDecl()
706 fputts(T("/>\n"), fp); in metaEndDoctypeDecl()
715 FILE *fp = data->fp; in metaNotationDecl() local
717 ftprintf(fp, T("<notation name=\"%s\""), notationName); in metaNotationDecl()
719 ftprintf(fp, T(" public=\"%s\""), publicId); in metaNotationDecl()
721 fputts(T(" system=\""), fp); in metaNotationDecl()
723 puttc(T('"'), fp); in metaNotationDecl()
726 fputts(T("/>\n"), fp); in metaNotationDecl()
736 FILE *fp = data->fp; in metaEntityDecl() local
741 ftprintf(fp, T("<entity name=\"%s\""), entityName); in metaEntityDecl()
743 puttc(T('>'), fp); in metaEntityDecl()
745 fputts(T("</entity/>\n"), fp); in metaEntityDecl()
747 ftprintf(fp, T("<entity name=\"%s\""), entityName); in metaEntityDecl()
749 ftprintf(fp, T(" public=\"%s\""), publicId); in metaEntityDecl()
750 fputts(T(" system=\""), fp); in metaEntityDecl()
752 puttc(T('"'), fp); in metaEntityDecl()
753 ftprintf(fp, T(" notation=\"%s\""), notationName); in metaEntityDecl()
755 fputts(T("/>\n"), fp); in metaEntityDecl()
757 ftprintf(fp, T("<entity name=\"%s\""), entityName); in metaEntityDecl()
759 ftprintf(fp, T(" public=\"%s\""), publicId); in metaEntityDecl()
760 fputts(T(" system=\""), fp); in metaEntityDecl()
762 puttc(T('"'), fp); in metaEntityDecl()
764 fputts(T("/>\n"), fp); in metaEntityDecl()
773 FILE *fp = data->fp; in metaStartNamespaceDecl() local
774 fputts(T("<startns"), fp); in metaStartNamespaceDecl()
776 ftprintf(fp, T(" prefix=\"%s\""), prefix); in metaStartNamespaceDecl()
778 fputts(T(" ns=\""), fp); in metaStartNamespaceDecl()
780 fputts(T("\"/>\n"), fp); in metaStartNamespaceDecl()
782 fputts(T("/>\n"), fp); in metaStartNamespaceDecl()
789 FILE *fp = data->fp; in metaEndNamespaceDecl() local
791 fputts(T("<endns/>\n"), fp); in metaEndNamespaceDecl()
793 ftprintf(fp, T("<endns prefix=\"%s\"/>\n"), prefix); in metaEndNamespaceDecl()
1172 userData.fp = tfopen(outName, T("wb")); in tmain()
1173 if (! userData.fp) { in tmain()
1184 setvbuf(userData.fp, NULL, _IOFBF, 16384); in tmain()
1186 puttc(0xFEFF, userData.fp); in tmain()
1236 fclose(userData.fp); in tmain()