• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/gettext-0.17/gettext-tools/gnulib-lib/libxml/

Lines Matching defs:encoding

54 #include <libxml/encoding.h>
337 errmsg = "Invalid XML encoding name\n";
1470 * running with UTF-8 encoding.
1479 * Clean macros, not dependent of an ASCII context, expect UTF-8 encoding
1485 * to the number of xmlChars used for the encoding [0-5].
2101 * plug some encoding conversion routines.
2103 * encoding (like UTF16, bug 135229), the 'length'
5765 const xmlChar *encoding;
5798 * We must have the encoding declaration
5800 encoding = xmlParseEncodingDecl(ctxt);
5807 if ((encoding == NULL) && (ctxt->errNo == XML_ERR_OK)) {
5809 "Missing encoding in text declaration\n");
8762 * parse the XML encoding name
8766 * Returns the encoding name value or NULL
8824 * parse the XML encoding declaration
8826 * [80] EncodingDecl ::= S 'encoding' Eq ('"' EncName '"' | "'" EncName "'")
8830 * Returns the encoding value or NULL
8835 xmlChar *encoding = NULL;
8849 encoding = xmlParseEncName(ctxt);
8856 encoding = xmlParseEncName(ctxt);
8865 * UTF-16 encoding stwich has already taken place at this stage,
8868 if ((encoding != NULL) &&
8869 ((!xmlStrcasecmp(encoding, BAD_CAST "UTF-16")) ||
8870 (!xmlStrcasecmp(encoding, BAD_CAST "UTF16")))) {
8871 if (ctxt->encoding != NULL)
8872 xmlFree((xmlChar *) ctxt->encoding);
8873 ctxt->encoding = encoding;
8876 * UTF-8 encoding is handled natively
8878 else if ((encoding != NULL) &&
8879 ((!xmlStrcasecmp(encoding, BAD_CAST "UTF-8")) ||
8880 (!xmlStrcasecmp(encoding, BAD_CAST "UTF8")))) {
8881 if (ctxt->encoding != NULL)
8882 xmlFree((xmlChar *) ctxt->encoding);
8883 ctxt->encoding = encoding;
8885 else if (encoding != NULL) {
8888 if (ctxt->input->encoding != NULL)
8889 xmlFree((xmlChar *) ctxt->input->encoding);
8890 ctxt->input->encoding = encoding;
8892 handler = xmlFindCharEncodingHandler((const char *) encoding);
8897 "Unsupported encoding %s\n", encoding);
8902 return(encoding);
9036 * We may have the encoding declaration
9056 if ((ctxt->input->encoding != NULL) && (!IS_BLANK_CH(RAW))) {
9141 if ((ctxt->encoding == (const xmlChar *)XML_CHAR_ENCODING_NONE) &&
9146 * plug some encoding conversion routines.
9170 * Note that we will switch encoding on the fly.
9305 * plug some encoding conversion routines.
9330 * Note that we will switch encoding on the fly.
9577 } else /* unknown encoding */
9721 * plug some encoding conversion routines,
9780 if ((ctxt->encoding == NULL) &&
9781 (ctxt->input->encoding != NULL))
9782 ctxt->encoding = xmlStrdup(ctxt->input->encoding);
10500 "Input is not proper UTF-8, indicate encoding !\n%s",
10624 * the encoding. The remaining characters will be parsed so they
10626 * To allow content encoding detection, @size should be >= 4
10642 * plug some encoding conversion routines
10718 * the encoding, we set the context to XML_CHAR_ENCODING_NONE so
10771 * @enc: the charset encoding if known
10837 * @enc: the charset encoding if known
10886 * plug some encoding conversion routines here.
10913 * plug some encoding conversion routines.
11015 * plug some encoding conversion routines here.
11195 * plug some encoding conversion routines.
11404 * plug some encoding conversion routines.
12954 DICT_FREE(ctxt->encoding);
12955 ctxt->encoding = NULL;
13016 * @encoding: the document encoding, or NULL
13024 int size, const char *filename, const char *encoding)
13033 if ((encoding == NULL) && (chunk != NULL) && (size >= 4))
13099 if (encoding != NULL) {
13102 hdlr = xmlFindCharEncodingHandler(encoding);
13107 "Unsupported encoding %s\n", BAD_CAST encoding);
13220 * @encoding: the document encoding, or NULL
13229 xmlDoRead(xmlParserCtxtPtr ctxt, const char *URL, const char *encoding,
13235 if (encoding != NULL) {
13238 hdlr = xmlFindCharEncodingHandler(encoding);
13266 * @encoding: the document encoding, or NULL
13274 xmlReadDoc(const xmlChar * cur, const char *URL, const char *encoding, int options)
13284 return (xmlDoRead(ctxt, URL, encoding, options, 0));
13290 * @encoding: the document encoding, or NULL
13298 xmlReadFile(const char *filename, const char *encoding, int options)
13305 return (xmlDoRead(ctxt, NULL, encoding, options, 0));
13313 * @encoding: the document encoding, or NULL
13321 xmlReadMemory(const char *buffer, int size, const char *URL, const char *encoding, int options)
13328 return (xmlDoRead(ctxt, URL, encoding, options, 0));
13335 * @encoding: the document encoding, or NULL
13345 xmlReadFd(int fd, const char *URL, const char *encoding, int options)
13370 return (xmlDoRead(ctxt, URL, encoding, options, 0));
13379 * @encoding: the document encoding, or NULL
13388 void *ioctx, const char *URL, const char *encoding, int options)
13413 return (xmlDoRead(ctxt, URL, encoding, options, 0));
13421 * @encoding: the document encoding, or NULL
13431 const char *URL, const char *encoding, int options)
13447 return (xmlDoRead(ctxt, URL, encoding, options, 1));
13454 * @encoding: the document encoding, or NULL
13464 const char *encoding, int options)
13480 return (xmlDoRead(ctxt, NULL, encoding, options, 1));
13489 * @encoding: the document encoding, or NULL
13499 const char *URL, const char *encoding, int options)
13523 return (xmlDoRead(ctxt, URL, encoding, options, 1));
13531 * @encoding: the document encoding, or NULL
13543 const char *URL, const char *encoding, int options)
13566 return (xmlDoRead(ctxt, URL, encoding, options, 1));
13576 * @encoding: the document encoding, or NULL
13588 const char *encoding, int options)
13610 return (xmlDoRead(ctxt, URL, encoding, options, 1));