Home | History | Annotate | Download | only in libxml2

Lines Matching refs:encoding

2  * encoding.c : implements the encoding conversion functions needed for XML
6 * rfc2781 UTF-16, an encoding of ISO 10646, P. Hoffman, F. Yergeau
10 * Worldwide Character Encoding -- Version 1.0", Addison-
39 #include <libxml/encoding.h>
63 #define DEBUG_ENCODING /* Define this to get encoding traces */
90 * n encoding error
150 * Conversions To/From UTF8 encoding *
580 /* UTF16LE encoding has no BOM */
903 * Generic encoding handling routines *
910 * 2 bytes long (at least 4 if encoding is UTF4 variant).
913 * Guess the encoding of the entity using the first bytes of the entity content
1001 * Lookup an encoding name for the given alias.
1035 * @name: the encoding name as parsed, in UTF-8 format (ASCII actually)
1038 * Registers an alias @alias for an encoding named @name. Existing alias
1096 * Unregisters an encoding alias @alias
1127 * @name: the encoding name as parsed, in UTF-8 format (ASCII actually)
1129 * Compare the string to the encoding schemes already known. Note
1131 * [XML] 4.3.3 Character Encoding in Entities.
1204 xmlGenericError(xmlGenericErrorContext, "Unknown encoding %s\n", name);
1211 * @enc: the encoding
1213 * The "canonical" name for XML encoding.
1215 * Section 4.3.3 Character Encoding in Entities
1217 * Returns the canonical name for the given encoding
1277 * Char encoding handlers *
1289 * parser internals, so the default encoding handler is NULL
1296 * @name: the encoding name, in UTF-8 format (ASCII actually)
1297 * @input: the xmlCharEncodingInputFunc to read that encoding
1298 * @output: the xmlCharEncodingOutputFunc to write that encoding
1322 * Keep only the uppercase version of the encoding.
1369 "Registered encoding handler for %s\n", name);
1377 * Initialize the char encoding support, it registers the default
1378 * encoding supported.
1437 * Cleanup the memory allocated for the char encoding support, it
1438 * unregisters all the encoding handlers and the aliases.
1464 * Register the char encoding handler, surprising, isn't it ?
1488 * Search in the registered set the handler able to read/write that encoding.
1609 "No handler found for encoding %d\n", enc);
1616 * @name: a string describing the char encoding.
1618 * Search in the registered set the handler able to read/write that encoding.
1651 * Check first for directly registered encoding names
1663 "Found registered handler for encoding %s\n", name);
1693 "Found iconv handler for encoding %s\n", name);
1720 "Found ICU converter handler for encoding %s\n", name);
1733 "No handler found for encoding %s\n", name);
1770 * the result of transformation can't fit into the encoding we want), or
1837 * the result of transformation can't fit into the encoding we want), or
1864 /* encoding => UTF-16 => UTF-8 */
1869 /* UTF-8 => UTF-16 => encoding */
1899 * Front-end for the encoding handler input function, but handle only
1905 * the result of transformation can't fit into the encoding we want), or
1922 * echo '<?xml version="1.0" encoding="UCS4"?>' | wc -c => 38
1923 * 45 chars should be sufficient to reach the end of the encoding
1994 * @handler: char encoding transformation data structure
1998 * Generic front-end for the encoding handler input function
2003 * the result of transformation can't fit into the encoding we want), or
2105 * Generic front-end for the encoding handler output function
2107 * output in case of non-stateless encoding needing to initiate their
2115 * the result of transformation can't fit into the encoding we want), or
2313 * Generic front-end for encoding handler close function
2363 "failed to close the encoding handler\n");
2366 "closed the encoding handler\n");
2397 * Encoding conversion, compute the number of unused original