Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: third_party/libxml/src/encoding.c

Issue 2010803004: Roll libxml to bdec2183f34b37ee89ae1d330c6ad2bb4d76605f (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update README.chromium Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/libxml/src/debugXML.c ('k') | third_party/libxml/src/entities.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * encoding.c : implements the encoding conversion functions needed for XML 2 * encoding.c : implements the encoding conversion functions needed for XML
3 * 3 *
4 * Related specs: 4 * Related specs:
5 * rfc2044 (UTF-8 and UTF-16) F. Yergeau Alis Technologies 5 * rfc2044 (UTF-8 and UTF-16) F. Yergeau Alis Technologies
6 * rfc2781 UTF-16, an encoding of ISO 10646, P. Hoffman, F. Yergeau 6 * rfc2781 UTF-16, an encoding of ISO 10646, P. Hoffman, F. Yergeau
7 * [ISO-10646] UTF-8 and UTF-16 in Annexes 7 * [ISO-10646] UTF-8 and UTF-16 in Annexes
8 * [ISO-8859-1] ISO Latin-1 characters codes. 8 * [ISO-8859-1] ISO Latin-1 characters codes.
9 * [UNICODE] The Unicode Consortium, "The Unicode Standard -- 9 * [UNICODE] The Unicode Consortium, "The Unicode Standard --
10 * Worldwide Character Encoding -- Version 1.0", Addison- 10 * Worldwide Character Encoding -- Version 1.0", Addison-
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 __xmlSimpleError(XML_FROM_I18N, XML_ERR_NO_MEMORY, NULL, NULL, extra); 86 __xmlSimpleError(XML_FROM_I18N, XML_ERR_NO_MEMORY, NULL, NULL, extra);
87 } 87 }
88 88
89 /** 89 /**
90 * xmlErrEncoding: 90 * xmlErrEncoding:
91 * @error: the error number 91 * @error: the error number
92 * @msg: the error message 92 * @msg: the error message
93 * 93 *
94 * n encoding error 94 * n encoding error
95 */ 95 */
96 static void 96 static void LIBXML_ATTR_FORMAT(2,0)
97 xmlEncodingErr(xmlParserErrors error, const char *msg, const char *val) 97 xmlEncodingErr(xmlParserErrors error, const char *msg, const char *val)
98 { 98 {
99 __xmlRaiseError(NULL, NULL, NULL, NULL, NULL, 99 __xmlRaiseError(NULL, NULL, NULL, NULL, NULL,
100 XML_FROM_I18N, error, XML_ERR_FATAL, 100 XML_FROM_I18N, error, XML_ERR_FATAL,
101 NULL, 0, val, NULL, NULL, 0, 0, msg, val); 101 NULL, 0, val, NULL, NULL, 0, 0, msg, val);
102 } 102 }
103 103
104 #ifdef LIBXML_ICU_ENABLED 104 #ifdef LIBXML_ICU_ENABLED
105 static uconv_t* 105 static uconv_t*
106 openIcuConverter(const char* name, int toUnicode) 106 openIcuConverter(const char* name, int toUnicode)
(...skipping 3969 matching lines...) Expand 10 before | Expand all | Expand 10 after
4076 xmlNewCharEncodingHandler ("ISO-8859-14", ISO8859_14ToUTF8, UTF8ToISO8859_14 ); 4076 xmlNewCharEncodingHandler ("ISO-8859-14", ISO8859_14ToUTF8, UTF8ToISO8859_14 );
4077 xmlNewCharEncodingHandler ("ISO-8859-15", ISO8859_15ToUTF8, UTF8ToISO8859_15 ); 4077 xmlNewCharEncodingHandler ("ISO-8859-15", ISO8859_15ToUTF8, UTF8ToISO8859_15 );
4078 xmlNewCharEncodingHandler ("ISO-8859-16", ISO8859_16ToUTF8, UTF8ToISO8859_16 ); 4078 xmlNewCharEncodingHandler ("ISO-8859-16", ISO8859_16ToUTF8, UTF8ToISO8859_16 );
4079 } 4079 }
4080 4080
4081 #endif 4081 #endif
4082 #endif 4082 #endif
4083 4083
4084 #define bottom_encoding 4084 #define bottom_encoding
4085 #include "elfgcchack.h" 4085 #include "elfgcchack.h"
OLDNEW
« no previous file with comments | « third_party/libxml/src/debugXML.c ('k') | third_party/libxml/src/entities.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698