Home | History | Annotate | Download | only in libxml2

Lines Matching defs:ctxt

26 static void testDocumentRangeByte1(xmlParserCtxtPtr ctxt, char *document,
33 xmlCtxtReset(ctxt);
66 static void testDocumentRangeByte2(xmlParserCtxtPtr ctxt, char *document,
74 xmlCtxtReset(ctxt);
145 xmlParserCtxtPtr ctxt;
152 ctxt = xmlNewParserCtxt();
153 if (ctxt == NULL) {
166 testDocumentRangeByte1(ctxt, &document1[0], strlen(document1),
175 testDocumentRangeByte1(ctxt, &document1[0], strlen(document1),
186 testDocumentRangeByte1(ctxt, &document2[0], strlen(document2),
195 testDocumentRangeByte1(ctxt, &document2[0], strlen(document2),
207 testDocumentRangeByte2(ctxt, &document1[0], strlen(document1),
216 testDocumentRangeByte2(ctxt, &document1[0], strlen(document1),
227 testDocumentRangeByte2(ctxt, &document2[0], strlen(document2),
236 testDocumentRangeByte2(ctxt, &document2[0], strlen(document2),
240 xmlFreeParserCtxt(ctxt);
243 static void testCharRangeByte1(xmlParserCtxtPtr ctxt, char *data) {
252 ctxt->charset = XML_CHAR_ENCODING_UTF8;
255 c = xmlCurrentChar(ctxt, &len);
270 static void testCharRangeByte2(xmlParserCtxtPtr ctxt, char *data) {
280 ctxt->charset = XML_CHAR_ENCODING_UTF8;
283 c = xmlCurrentChar(ctxt, &len);
346 static void testCharRangeByte3(xmlParserCtxtPtr ctxt, char *data) {
361 ctxt->charset = XML_CHAR_ENCODING_UTF8;
364 c = xmlCurrentChar(ctxt, &len);
432 static void testCharRangeByte4(xmlParserCtxtPtr ctxt, char *data) {
451 ctxt->charset = XML_CHAR_ENCODING_UTF8;
454 c = xmlCurrentChar(ctxt, &len);
535 xmlParserCtxtPtr ctxt;
545 ctxt = xmlNewParserCtxt();
546 if (ctxt == NULL) {
556 input = xmlNewInputStream(ctxt);
566 inputPush(ctxt, input);
570 testCharRangeByte1(ctxt, data);
573 testCharRangeByte2(ctxt, data);
576 testCharRangeByte3(ctxt, data);
579 testCharRangeByte4(ctxt, data);
584 xmlFreeParserCtxt(ctxt);