• Home
  • Raw
  • Download

Lines Matching refs:fp

62   FILE *fp;  member
73 FILE *fp = ((XmlwfUserData *)userData)->fp; in characterData() local
77 fputts(T("&"), fp); in characterData()
80 fputts(T("<"), fp); in characterData()
83 fputts(T(">"), fp); in characterData()
87 fputts(T("
"), fp); in characterData()
91 fputts(T("""), fp); in characterData()
96 ftprintf(fp, T("&#%d;"), *s); in characterData()
100 puttc(*s, fp); in characterData()
107 attributeValue(FILE *fp, const XML_Char *s) { in attributeValue() argument
108 puttc(T('='), fp); in attributeValue()
109 puttc(T('"'), fp); in attributeValue()
115 puttc(T('"'), fp); in attributeValue()
118 fputts(T("&"), fp); in attributeValue()
121 fputts(T("<"), fp); in attributeValue()
124 fputts(T("""), fp); in attributeValue()
128 fputts(T("	"), fp); in attributeValue()
131 fputts(T("
"), fp); in attributeValue()
134 fputts(T("
"), fp); in attributeValue()
138 fputts(T(">"), fp); in attributeValue()
143 ftprintf(fp, T("&#%d;"), *s); in attributeValue()
147 puttc(*s, fp); in attributeValue()
166 FILE *fp = ((XmlwfUserData *)userData)->fp; in startElement() local
167 puttc(T('<'), fp); in startElement()
168 fputts(name, fp); in startElement()
177 puttc(T(' '), fp); in startElement()
178 fputts(*atts++, fp); in startElement()
179 attributeValue(fp, *atts); in startElement()
182 puttc(T('>'), fp); in startElement()
187 FILE *fp = ((XmlwfUserData *)userData)->fp; in endElement() local
188 puttc(T('<'), fp); in endElement()
189 puttc(T('/'), fp); in endElement()
190 fputts(name, fp); in endElement()
191 puttc(T('>'), fp); in endElement()
210 FILE *fp = ((XmlwfUserData *)userData)->fp; in startElementNS() local
212 puttc(T('<'), fp); in startElementNS()
216 fputts(T("n1:"), fp); in startElementNS()
217 fputts(sep + 1, fp); in startElementNS()
218 fputts(T(" xmlns:n1"), fp); in startElementNS()
219 attributeValue(fp, name); in startElementNS()
222 fputts(name, fp); in startElementNS()
235 puttc(T(' '), fp); in startElementNS()
237 ftprintf(fp, T("n%d:"), nsi); in startElementNS()
238 fputts(sep + 1, fp); in startElementNS()
240 fputts(name, fp); in startElementNS()
241 attributeValue(fp, *atts); in startElementNS()
243 ftprintf(fp, T(" xmlns:n%d"), nsi++); in startElementNS()
244 attributeValue(fp, name); in startElementNS()
248 puttc(T('>'), fp); in startElementNS()
253 FILE *fp = ((XmlwfUserData *)userData)->fp; in endElementNS() local
255 puttc(T('<'), fp); in endElementNS()
256 puttc(T('/'), fp); in endElementNS()
259 fputts(T("n1:"), fp); in endElementNS()
260 fputts(sep + 1, fp); in endElementNS()
262 fputts(name, fp); in endElementNS()
263 puttc(T('>'), fp); in endElementNS()
271 FILE *fp = ((XmlwfUserData *)userData)->fp; in processingInstruction() local
272 puttc(T('<'), fp); in processingInstruction()
273 puttc(T('?'), fp); in processingInstruction()
274 fputts(target, fp); in processingInstruction()
275 puttc(T(' '), fp); in processingInstruction()
276 fputts(data, fp); in processingInstruction()
277 puttc(T('?'), fp); in processingInstruction()
278 puttc(T('>'), fp); in processingInstruction()
388 fputts(T("<!DOCTYPE "), data->fp); in endDoctypeDecl()
389 fputts(data->currentDoctypeName, data->fp); in endDoctypeDecl()
390 fputts(T(" [\n"), data->fp); in endDoctypeDecl()
394 fputts(T("<!NOTATION "), data->fp); in endDoctypeDecl()
395 fputts(notations[i]->notationName, data->fp); in endDoctypeDecl()
397 fputts(T(" PUBLIC '"), data->fp); in endDoctypeDecl()
398 fputts(notations[i]->publicId, data->fp); in endDoctypeDecl()
399 puttc(T('\''), data->fp); in endDoctypeDecl()
401 puttc(T(' '), data->fp); in endDoctypeDecl()
402 puttc(T('\''), data->fp); in endDoctypeDecl()
403 fputts(notations[i]->systemId, data->fp); in endDoctypeDecl()
404 puttc(T('\''), data->fp); in endDoctypeDecl()
407 fputts(T(" SYSTEM '"), data->fp); in endDoctypeDecl()
408 fputts(notations[i]->systemId, data->fp); in endDoctypeDecl()
409 puttc(T('\''), data->fp); in endDoctypeDecl()
411 puttc(T('>'), data->fp); in endDoctypeDecl()
412 puttc(T('\n'), data->fp); in endDoctypeDecl()
416 fputts(T("]>\n"), data->fp); in endDoctypeDecl()
531 FILE *fp = ((XmlwfUserData *)XML_GetUserData((XML_Parser)userData))->fp; in markup() local
533 puttc(*s, fp); in markup()
539 FILE *fp = ((XmlwfUserData *)XML_GetUserData(parser))->fp; in metaLocation() local
541 ftprintf(fp, T(" uri=\"%s\""), uri); in metaLocation()
542 ftprintf(fp, in metaLocation()
554 ((XmlwfUserData *)XML_GetUserData((XML_Parser)userData))->fp); in metaStartDocument()
560 ((XmlwfUserData *)XML_GetUserData((XML_Parser)userData))->fp); in metaEndDocument()
567 FILE *fp = data->fp; in metaStartElement() local
577 ftprintf(fp, T("<starttag name=\"%s\""), name); in metaStartElement()
580 fputts(T(">\n"), fp); in metaStartElement()
582 ftprintf(fp, T("<attribute name=\"%s\" value=\""), atts[0]); in metaStartElement()
585 fputts(T("\" defaulted=\"yes\"/>\n"), fp); in metaStartElement()
587 fputts(T("\" id=\"yes\"/>\n"), fp); in metaStartElement()
589 fputts(T("\"/>\n"), fp); in metaStartElement()
591 fputts(T("</starttag>\n"), fp); in metaStartElement()
593 fputts(T("/>\n"), fp); in metaStartElement()
600 FILE *fp = data->fp; in metaEndElement() local
601 ftprintf(fp, T("<endtag name=\"%s\""), name); in metaEndElement()
603 fputts(T("/>\n"), fp); in metaEndElement()
611 FILE *fp = usrData->fp; in metaProcessingInstruction() local
612 ftprintf(fp, T("<pi target=\"%s\" data=\""), target); in metaProcessingInstruction()
614 puttc(T('"'), fp); in metaProcessingInstruction()
616 fputts(T("/>\n"), fp); in metaProcessingInstruction()
623 FILE *fp = usrData->fp; in metaComment() local
624 fputts(T("<comment data=\""), fp); in metaComment()
626 puttc(T('"'), fp); in metaComment()
628 fputts(T("/>\n"), fp); in metaComment()
635 FILE *fp = data->fp; in metaStartCdataSection() local
636 fputts(T("<startcdata"), fp); in metaStartCdataSection()
638 fputts(T("/>\n"), fp); in metaStartCdataSection()
645 FILE *fp = data->fp; in metaEndCdataSection() local
646 fputts(T("<endcdata"), fp); in metaEndCdataSection()
648 fputts(T("/>\n"), fp); in metaEndCdataSection()
655 FILE *fp = data->fp; in metaCharacterData() local
656 fputts(T("<chars str=\""), fp); in metaCharacterData()
658 puttc(T('"'), fp); in metaCharacterData()
660 fputts(T("/>\n"), fp); in metaCharacterData()
669 FILE *fp = data->fp; in metaStartDoctypeDecl() local
673 ftprintf(fp, T("<startdoctype name=\"%s\""), doctypeName); in metaStartDoctypeDecl()
675 fputts(T("/>\n"), fp); in metaStartDoctypeDecl()
682 FILE *fp = data->fp; in metaEndDoctypeDecl() local
683 fputts(T("<enddoctype"), fp); in metaEndDoctypeDecl()
685 fputts(T("/>\n"), fp); in metaEndDoctypeDecl()
694 FILE *fp = data->fp; in metaNotationDecl() local
696 ftprintf(fp, T("<notation name=\"%s\""), notationName); in metaNotationDecl()
698 ftprintf(fp, T(" public=\"%s\""), publicId); in metaNotationDecl()
700 fputts(T(" system=\""), fp); in metaNotationDecl()
702 puttc(T('"'), fp); in metaNotationDecl()
705 fputts(T("/>\n"), fp); in metaNotationDecl()
715 FILE *fp = data->fp; in metaEntityDecl() local
720 ftprintf(fp, T("<entity name=\"%s\""), entityName); in metaEntityDecl()
722 puttc(T('>'), fp); in metaEntityDecl()
724 fputts(T("</entity/>\n"), fp); in metaEntityDecl()
726 ftprintf(fp, T("<entity name=\"%s\""), entityName); in metaEntityDecl()
728 ftprintf(fp, T(" public=\"%s\""), publicId); in metaEntityDecl()
729 fputts(T(" system=\""), fp); in metaEntityDecl()
731 puttc(T('"'), fp); in metaEntityDecl()
732 ftprintf(fp, T(" notation=\"%s\""), notationName); in metaEntityDecl()
734 fputts(T("/>\n"), fp); in metaEntityDecl()
736 ftprintf(fp, T("<entity name=\"%s\""), entityName); in metaEntityDecl()
738 ftprintf(fp, T(" public=\"%s\""), publicId); in metaEntityDecl()
739 fputts(T(" system=\""), fp); in metaEntityDecl()
741 puttc(T('"'), fp); in metaEntityDecl()
743 fputts(T("/>\n"), fp); in metaEntityDecl()
752 FILE *fp = data->fp; in metaStartNamespaceDecl() local
753 fputts(T("<startns"), fp); in metaStartNamespaceDecl()
755 ftprintf(fp, T(" prefix=\"%s\""), prefix); in metaStartNamespaceDecl()
757 fputts(T(" ns=\""), fp); in metaStartNamespaceDecl()
759 fputts(T("\"/>\n"), fp); in metaStartNamespaceDecl()
761 fputts(T("/>\n"), fp); in metaStartNamespaceDecl()
768 FILE *fp = data->fp; in metaEndNamespaceDecl() local
770 fputts(T("<endns/>\n"), fp); in metaEndNamespaceDecl()
772 ftprintf(fp, T("<endns prefix=\"%s\"/>\n"), prefix); in metaEndNamespaceDecl()
1084 userData.fp = tfopen(outName, T("wb")); in tmain()
1085 if (! userData.fp) { in tmain()
1096 setvbuf(userData.fp, NULL, _IOFBF, 16384); in tmain()
1098 puttc(0xFEFF, userData.fp); in tmain()
1148 fclose(userData.fp); in tmain()