• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/libxml2-26/libxml2/

Lines Matching defs:handler

1297  * parser internals, so the default encoding handler is NULL
1316 xmlCharEncodingHandlerPtr handler;
1349 * allocate and fill-up an handler block.
1351 handler = (xmlCharEncodingHandlerPtr)
1353 if (handler == NULL) {
1358 memset(handler, 0, sizeof(xmlCharEncodingHandler));
1359 handler->input = input;
1360 handler->output = output;
1361 handler->name = up;
1364 handler->iconv_in = NULL;
1365 handler->iconv_out = NULL;
1368 handler->uconv_in = NULL;
1369 handler->uconv_out = NULL;
1373 * registers and returns the handler.
1375 xmlRegisterCharEncodingHandler(handler);
1378 "Registered encoding handler for %s\n", name);
1380 return(handler);
1471 * @handler: the xmlCharEncodingHandlerPtr handler block
1473 * Register the char encoding handler, surprising, isn't it ?
1476 xmlRegisterCharEncodingHandler(xmlCharEncodingHandlerPtr handler) {
1478 if ((handler == NULL) || (handlers == NULL)) {
1480 "xmlRegisterCharEncodingHandler: NULL handler !\n", NULL);
1486 "xmlRegisterCharEncodingHandler: Too many handler registered, see %s\n",
1490 handlers[nbCharEncodingHandler++] = handler;
1497 * Search in the registered set the handler able to read/write that encoding.
1499 * Returns the handler or NULL if not found
1503 xmlCharEncodingHandlerPtr handler;
1518 handler = xmlFindCharEncodingHandler("EBCDIC");
1519 if (handler != NULL) return(handler);
1520 handler = xmlFindCharEncodingHandler("ebcdic");
1521 if (handler != NULL) return(handler);
1522 handler = xmlFindCharEncodingHandler("EBCDIC-US");
1523 if (handler != NULL) return(handler);
1524 handler = xmlFindCharEncodingHandler("IBM-037");
1525 if (handler != NULL) return(handler);
1528 handler = xmlFindCharEncodingHandler("ISO-10646-UCS-4");
1529 if (handler != NULL) return(handler);
1530 handler = xmlFindCharEncodingHandler("UCS-4");
1531 if (handler != NULL) return(handler);
1532 handler = xmlFindCharEncodingHandler("UCS4");
1533 if (handler != NULL) return(handler);
1536 handler = xmlFindCharEncodingHandler("ISO-10646-UCS-4");
1537 if (handler != NULL) return(handler);
1538 handler = xmlFindCharEncodingHandler("UCS-4");
1539 if (handler != NULL) return(handler);
1540 handler = xmlFindCharEncodingHandler("UCS4");
1541 if (handler != NULL) return(handler);
1548 handler = xmlFindCharEncodingHandler("ISO-10646-UCS-2");
1549 if (handler != NULL) return(handler);
1550 handler = xmlFindCharEncodingHandler("UCS-2");
1551 if (handler != NULL) return(handler);
1552 handler = xmlFindCharEncodingHandler("UCS2");
1553 if (handler != NULL) return(handler);
1563 handler = xmlFindCharEncodingHandler("ISO-8859-1");
1564 if (handler != NULL) return(handler);
1567 handler = xmlFindCharEncodingHandler("ISO-8859-2");
1568 if (handler != NULL) return(handler);
1571 handler = xmlFindCharEncodingHandler("ISO-8859-3");
1572 if (handler != NULL) return(handler);
1575 handler = xmlFindCharEncodingHandler("ISO-8859-4");
1576 if (handler != NULL) return(handler);
1579 handler = xmlFindCharEncodingHandler("ISO-8859-5");
1580 if (handler != NULL) return(handler);
1583 handler = xmlFindCharEncodingHandler("ISO-8859-6");
1584 if (handler != NULL) return(handler);
1587 handler = xmlFindCharEncodingHandler("ISO-8859-7");
1588 if (handler != NULL) return(handler);
1591 handler = xmlFindCharEncodingHandler("ISO-8859-8");
1592 if (handler != NULL) return(handler);
1595 handler = xmlFindCharEncodingHandler("ISO-8859-9");
1596 if (handler != NULL) return(handler);
1601 handler = xmlFindCharEncodingHandler("ISO-2022-JP");
1602 if (handler != NULL) return(handler);
1605 handler = xmlFindCharEncodingHandler("SHIFT-JIS");
1606 if (handler != NULL) return(handler);
1607 handler = xmlFindCharEncodingHandler("SHIFT_JIS");
1608 if (handler != NULL) return(handler);
1609 handler = xmlFindCharEncodingHandler("Shift_JIS");
1610 if (handler != NULL) return(handler);
1613 handler = xmlFindCharEncodingHandler("EUC-JP");
1614 if (handler != NULL) return(handler);
1622 "No handler found for encoding %d\n", enc);
1631 * Search in the registered set the handler able to read/write that encoding.
1633 * Returns the handler or NULL if not found
1677 "Found registered handler for encoding %s\n", name);
1710 "Found iconv handler for encoding %s\n", name);
1738 "Found ICU converter handler for encoding %s\n", name);
1751 "No handler found for encoding %s\n", name);
1913 * @handler: char enconding transformation data structure
1918 * Front-end for the encoding handler input function, but handle only
1927 xmlCharEncFirstLineInt(xmlCharEncodingHandler *handler, xmlBufferPtr out,
1933 if (handler == NULL) return(-1);
1960 if (handler->input != NULL) {
1961 ret = handler->input(&out->content[out->use], &written,
1968 else if (handler->iconv_in != NULL) {
1969 ret = xmlIconvWrapper(handler->iconv_in, &out->content[out->use],
1978 else if (handler->uconv_in != NULL) {
1979 ret = xmlUconvWrapper(handler->uconv_in, 1, &out->content[out->use],
2020 * @handler: char enconding transformation data structure
2024 * Front-end for the encoding handler input function, but handle only
2033 xmlCharEncFirstLine(xmlCharEncodingHandler *handler, xmlBufferPtr out,
2035 return(xmlCharEncFirstLineInt(handler, out, in, -1));
2043 * Front-end for the encoding handler input function, but handle only
2172 * Generic front-end for the encoding handler on parser input
2286 * @handler: char encoding transformation data structure
2290 * Generic front-end for the encoding handler input function
2298 xmlCharEncInFunc(xmlCharEncodingHandler * handler, xmlBufferPtr out,
2305 if (handler == NULL)
2320 if (handler->input != NULL) {
2321 ret = handler->input(&out->content[out->use], &written,
2328 else if (handler->iconv_in != NULL) {
2329 ret = xmlIconvWrapper(handler->iconv_in, &out->content[out->use],
2339 else if (handler->uconv_in != NULL) {
2340 ret = xmlUconvWrapper(handler->uconv_in, 1, &out->content[out->use],
2396 * Generic front-end for the encoding handler on parser output
2622 * @handler: char enconding transformation data structure
2626 * Generic front-end for the encoding handler output function
2639 xmlCharEncOutFunc(xmlCharEncodingHandler *handler, xmlBufferPtr out,
2648 if (handler == NULL) return(-1);
2663 if (handler->output != NULL) {
2664 ret = handler->output(&out->content[out->use], &written,
2672 else if (handler->iconv_out != NULL) {
2673 ret = xmlIconvWrapper(handler->iconv_out, &out->content[out->use],
2680 else if (handler->uconv_out != NULL) {
2681 ret = xmlUconvWrapper(handler->uconv_out, 0,
2705 if (handler->output != NULL) {
2706 ret = handler->output(&out->content[out->use], &written,
2716 else if (handler->iconv_out != NULL) {
2717 ret = xmlIconvWrapper(handler->iconv_out, &out->content[out->use],
2736 else if (handler->uconv_out != NULL) {
2737 ret = xmlUconvWrapper(handler->uconv_out, 0,
2848 * @handler: char enconding transformation data structure
2850 * Generic front-end for encoding handler close function
2855 xmlCharEncCloseFunc(xmlCharEncodingHandler *handler) {
2858 if (handler == NULL) return(-1);
2859 if (handler->name == NULL) return(-1);
2865 if ((handler->iconv_out != NULL) || (handler->iconv_in != NULL)) {
2867 if (handler->iconv_out != NULL) {
2868 if (iconv_close(handler->iconv_out))
2870 handler->iconv_out = NULL;
2872 if (handler->iconv_in != NULL) {
2873 if (iconv_close(handler->iconv_in))
2875 handler->iconv_in = NULL;
2880 if ((handler->uconv_out != NULL) || (handler->uconv_in != NULL)) {
2882 if (handler->uconv_out != NULL) {
2883 closeIcuConverter(handler->uconv_out);
2884 handler->uconv_out = NULL;
2886 if (handler->uconv_in != NULL) {
2887 closeIcuConverter(handler->uconv_in);
2888 handler->uconv_in = NULL;
2894 if (handler->name != NULL)
2895 xmlFree(handler->name);
2896 handler->name = NULL;
2897 xmlFree(handler);
2902 "failed to close the encoding handler\n");
2905 "closed the encoding handler\n");
2934 xmlCharEncodingHandler * handler = in->buf->encoder;
2947 if (handler->output != NULL) {
2951 ret = handler->output(&convbuf[0], &written,
2958 } else if (handler->iconv_out != NULL) {
2962 ret = xmlIconvWrapper(handler->iconv_out, &convbuf[0],
2975 } else if (handler->uconv_out != NULL) {
2979 ret = xmlUconvWrapper(handler->uconv_out, 0, &convbuf[0],