• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/gettext-0.17/gnulib-local/lib/libxml/

Lines Matching defs:encoding

79     const xmlChar *encoding;
131 msg = "unknown encoding %s\n";
196 * encoding specified.
333 if ((ctxt->encoding == NULL) && (ctxt->escape == NULL))
361 if (ctxt->encoding != NULL)
362 xmlFree((char *) ctxt->encoding);
376 xmlNewSaveCtxt(const char *encoding, int options)
387 if (encoding != NULL) {
388 ret->handler = xmlFindCharEncodingHandler(encoding);
390 xmlSaveErr(XML_SAVE_UNKNOWN_ENCODING, NULL, encoding);
394 ret->encoding = xmlStrdup((const xmlChar *)encoding);
597 * @encoding: an optional encoding string
829 const xmlChar *oldenc = cur->encoding;
830 const xmlChar *oldctxtenc = ctxt->encoding;
831 const xmlChar *encoding = ctxt->encoding;
840 if (ctxt->encoding != NULL) {
841 cur->encoding = BAD_CAST ctxt->encoding;
842 } else if (cur->encoding != NULL) {
843 encoding = cur->encoding;
845 encoding = (const xmlChar *)
849 enc = xmlParseCharEncoding((const char*) encoding);
850 if ((encoding != NULL) && (oldctxtenc == NULL) &&
857 * we need to switch to this encoding but just for this document
861 buf->encoder = xmlFindCharEncodingHandler((const char *)encoding);
864 (const char *)encoding);
870 xmlSaveErrMemory("creating encoding buffer");
894 if (encoding != NULL) {
895 xmlOutputBufferWrite(buf, 10, " encoding=");
896 xmlBufferWriteQuotedString(buf->buffer, (xmlChar *) encoding);
933 if (ctxt->encoding != NULL)
934 cur->encoding = oldenc;
939 if ((encoding != NULL) && (oldctxtenc == NULL) &&
1116 * @encoding: an optional encoding string
1150 * @encoding: an optional encoding string
1334 if (ctxt->encoding) {
1335 xmlOutputBufferWriteString(buf, (const char *)ctxt->encoding);
1369 if (ctxt->encoding) {
1370 xmlOutputBufferWriteString(buf, (const char *)ctxt->encoding);
1487 * @encoding: the encoding name to use or NULL
1491 * with the encoding and the options given.
1496 xmlSaveToFd(int fd, const char *encoding, int options)
1500 ret = xmlNewSaveCtxt(encoding, options);
1513 * @encoding: the encoding name to use or NULL
1517 * to an URL (but this is less reliable) with the encoding and the options
1523 xmlSaveToFilename(const char *filename, const char *encoding, int options)
1528 ret = xmlNewSaveCtxt(encoding, options);
1542 * @encoding: the encoding name to use or NULL
1546 * with the encoding and the options given
1552 xmlSaveToBuffer(xmlBufferPtr buffer, const char *encoding, int options)
1558 ret = xmlNewSaveCtxt(encoding, options);
1561 if (encoding != NULL) {
1562 handler = xmlFindCharEncodingHandler(encoding);
1585 * @encoding: the encoding name to use or NULL
1589 * with the encoding and the options given
1596 void *ioctx, const char *encoding, int options)
1600 ret = xmlNewSaveCtxt(encoding, options);
1791 (doc->encoding == NULL))) {
1803 doc->encoding = xmlStrdup(BAD_CAST "ISO-8859-1");
1834 doc->encoding = xmlStrdup(BAD_CAST "ISO-8859-1");
1972 * @encoding: an optional encoding string
1980 int level, int format, const char *encoding)
1992 if (encoding == NULL)
1993 encoding = "UTF-8";
2000 ctxt.encoding = (const xmlChar *) encoding;
2023 * @txt_encoding: Character encoding to use when generating XML text
2026 * Dump the current DOM tree into memory using the character encoding specified
2060 * Validate the encoding value, if provided.
2065 txt_encoding = (const char *) out_doc->encoding;
2085 ctxt.encoding = (const xmlChar *) txt_encoding;
2145 * @txt_encoding: Character encoding to use when generating XML text
2147 * Dump the current DOM tree into memory using the character encoding specified
2175 const char * encoding;
2186 encoding = (const char *) cur->encoding;
2188 if (encoding != NULL) {
2189 handler = xmlFindCharEncodingHandler(encoding);
2191 xmlFree((char *) cur->encoding);
2192 cur->encoding = NULL;
2202 ctxt.encoding = (const xmlChar *) encoding;
2228 * @encoding: the encoding if any assuming the I/O layer handles the trancoding
2237 xmlSaveFileTo(xmlOutputBufferPtr buf, xmlDocPtr cur, const char *encoding) {
2251 ctxt.encoding = (const xmlChar *) encoding;
2262 * @encoding: the encoding if any assuming the I/O layer handles the trancoding
2273 const char *encoding, int format)
2290 ctxt.encoding = (const xmlChar *) encoding;
2301 * @encoding: the name of the encoding to use or NULL.
2312 const char * encoding, int format ) {
2321 if (encoding == NULL)
2322 encoding = (const char *) cur->encoding;
2324 if (encoding != NULL) {
2326 handler = xmlFindCharEncodingHandler(encoding);
2344 ctxt.encoding = (const xmlChar *) encoding;
2358 * @encoding: the name of an encoding (or NULL)
2360 * Dump an XML document, converting it to the given encoding
2365 xmlSaveFileEnc(const char *filename, xmlDocPtr cur, const char *encoding) {
2366 return ( xmlSaveFormatFileEnc( filename, cur, encoding, 0 ) );