Home | History | Annotate | Download | only in parser

Lines Matching refs:closure

1252 static inline XMLDocumentParser* getParser(void* closure)
1254 xmlParserCtxtPtr ctxt = static_cast<xmlParserCtxtPtr>(closure);
1258 static void startElementNsHandler(void* closure, const xmlChar* localName, const xmlChar* prefix, const xmlChar* uri, int nbNamespaces, const xmlChar** namespaces, int nbAttributes, int nbDefaulted, const xmlChar** libxmlAttributes)
1260 getParser(closure)->startElementNs(toAtomicString(localName), toAtomicString(prefix), toAtomicString(uri), nbNamespaces, namespaces, nbAttributes, nbDefaulted, libxmlAttributes);
1263 static void endElementNsHandler(void* closure, const xmlChar*, const xmlChar*, const xmlChar*)
1265 getParser(closure)->endElementNs();
1268 static void charactersHandler(void* closure, const xmlChar* chars, int length)
1270 getParser(closure)->characters(chars, length);
1273 static void processingInstructionHandler(void* closure, const xmlChar* target, const xmlChar* data)
1275 getParser(closure)->processingInstruction(toString(target), toString(data));
1278 static void cdataBlockHandler(void* closure, const xmlChar* text, int length)
1280 getParser(closure)->cdataBlock(toString(text, length));
1283 static void commentHandler(void* closure, const xmlChar* text)
1285 getParser(closure)->comment(toString(text));
1289 static void warningHandler(void* closure, const char* message, ...)
1293 getParser(closure)->error(XMLErrors::ErrorTypeWarning, message, args);
1298 static void fatalErrorHandler(void* closure, const char* message, ...)
1302 getParser(closure)->error(XMLErrors::ErrorTypeFatal, message, args);
1307 static void normalErrorHandler(void* closure, const char* message, ...)
1311 getParser(closure)->error(XMLErrors::ErrorTypeNonFatal, message, args);
1365 static xmlEntityPtr getEntityHandler(void* closure, const xmlChar* name)
1367 xmlParserCtxtPtr ctxt = static_cast<xmlParserCtxtPtr>(closure);
1375 if (!ent && getParser(closure)->isXHTMLDocument()) {
1384 static void startDocumentHandler(void* closure)
1386 xmlParserCtxt* ctxt = static_cast<xmlParserCtxt*>(closure);
1387 XMLDocumentParser* parser = getParser(closure);
1390 xmlSAX2StartDocument(closure);
1393 static void endDocumentHandler(void* closure)
1395 getParser(closure)->endDocument();
1396 xmlSAX2EndDocument(closure);
1399 static void internalSubsetHandler(void* closure, const xmlChar* name, const xmlChar* externalID, const xmlChar* systemID)
1401 getParser(closure)->internalSubset(toString(name), toString(externalID), toString(systemID));
1402 xmlSAX2InternalSubset(closure, name, externalID, systemID);
1405 static void externalSubsetHandler(void* closure, const xmlChar*, const xmlChar* externalId, const xmlChar*)
1419 getParser(closure)->setIsXHTMLDocument(true);
1612 static void attributesStartElementNsHandler(void* closure, const xmlChar* xmlLocalName, const xmlChar* /*xmlPrefix*/,
1619 xmlParserCtxtPtr ctxt = static_cast<xmlParserCtxtPtr>(closure);