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

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

Issue 10797029: Enforce all the source files to be encoded in UTF-8. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more readmes Created 8 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « third_party/libxml/README.chromium ('k') | third_party/libxml/src/runtest.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 * entities.c : implementation for the XML entities handling 2 * entities.c : implementation for the XML entities handling
3 * 3 *
4 * See Copyright for the status of this software. 4 * See Copyright for the status of this software.
5 * 5 *
6 * daniel@veillard.com 6 * daniel@veillard.com
7 */ 7 */
8 8
9 #define IN_LIBXML 9 #define IN_LIBXML
10 #include "libxml.h" 10 #include "libxml.h"
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 *out++ = ';'; 602 *out++ = ';';
603 } else if (((*cur >= 0x20) && (*cur < 0x80)) || 603 } else if (((*cur >= 0x20) && (*cur < 0x80)) ||
604 (*cur == '\n') || (*cur == '\t') || ((html) && (*cur == '\r'))) { 604 (*cur == '\n') || (*cur == '\t') || ((html) && (*cur == '\r'))) {
605 /* 605 /*
606 * default case, just copy ! 606 * default case, just copy !
607 */ 607 */
608 *out++ = *cur; 608 *out++ = *cur;
609 } else if (*cur >= 0x80) { 609 } else if (*cur >= 0x80) {
610 if (((doc != NULL) && (doc->encoding != NULL)) || (html)) { 610 if (((doc != NULL) && (doc->encoding != NULL)) || (html)) {
611 /* 611 /*
612 » » * Bjørn Reese <br@sseusa.com> provided the patch 612 » » * Bjørn Reese <br@sseusa.com> provided the patch
613 xmlChar xc; 613 xmlChar xc;
614 xc = (*cur & 0x3F) << 6; 614 xc = (*cur & 0x3F) << 6;
615 if (cur[1] != 0) { 615 if (cur[1] != 0) {
616 xc += *(++cur) & 0x3F; 616 xc += *(++cur) & 0x3F;
617 *out++ = xc; 617 *out++ = xc;
618 } else 618 } else
619 */ 619 */
620 *out++ = *cur; 620 *out++ = *cur;
621 } else { 621 } else {
622 /* 622 /*
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
1013 * 1013 *
1014 * This will dump the content of the entity table as an XML DTD definition 1014 * This will dump the content of the entity table as an XML DTD definition
1015 */ 1015 */
1016 void 1016 void
1017 xmlDumpEntitiesTable(xmlBufferPtr buf, xmlEntitiesTablePtr table) { 1017 xmlDumpEntitiesTable(xmlBufferPtr buf, xmlEntitiesTablePtr table) {
1018 xmlHashScan(table, (xmlHashScanner)xmlDumpEntityDeclScan, buf); 1018 xmlHashScan(table, (xmlHashScanner)xmlDumpEntityDeclScan, buf);
1019 } 1019 }
1020 #endif /* LIBXML_OUTPUT_ENABLED */ 1020 #endif /* LIBXML_OUTPUT_ENABLED */
1021 #define bottom_entities 1021 #define bottom_entities
1022 #include "elfgcchack.h" 1022 #include "elfgcchack.h"
OLDNEW
« no previous file with comments | « third_party/libxml/README.chromium ('k') | third_party/libxml/src/runtest.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698