| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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" |
| OLD | NEW |