mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 20:03:07 +00:00
[LIBXML2] Update to version 2.9.14. CORE-17766
This commit is contained in:
parent
7244e0c5c6
commit
8940614a78
16 changed files with 226 additions and 232 deletions
59
sdk/lib/3rdparty/libxml2/valid.c
vendored
59
sdk/lib/3rdparty/libxml2/valid.c
vendored
|
@ -479,35 +479,6 @@ nodeVPop(xmlValidCtxtPtr ctxt)
|
|||
return (ret);
|
||||
}
|
||||
|
||||
/**
|
||||
* xmlValidNormalizeString:
|
||||
* @str: a string
|
||||
*
|
||||
* Normalize a string in-place.
|
||||
*/
|
||||
static void
|
||||
xmlValidNormalizeString(xmlChar *str) {
|
||||
xmlChar *dst;
|
||||
const xmlChar *src;
|
||||
|
||||
if (str == NULL)
|
||||
return;
|
||||
src = str;
|
||||
dst = str;
|
||||
|
||||
while (*src == 0x20) src++;
|
||||
while (*src != 0) {
|
||||
if (*src == 0x20) {
|
||||
while (*src == 0x20) src++;
|
||||
if (*src != 0)
|
||||
*dst++ = 0x20;
|
||||
} else {
|
||||
*dst++ = *src++;
|
||||
}
|
||||
}
|
||||
*dst = 0;
|
||||
}
|
||||
|
||||
#ifdef DEBUG_VALID_ALGO
|
||||
static void
|
||||
xmlValidPrintNode(xmlNodePtr cur) {
|
||||
|
@ -1081,6 +1052,7 @@ xmlCopyDocElementContent(xmlDocPtr doc, xmlElementContentPtr cur) {
|
|||
tmp->type = cur->type;
|
||||
tmp->ocur = cur->ocur;
|
||||
prev->c2 = tmp;
|
||||
tmp->parent = prev;
|
||||
if (cur->name != NULL) {
|
||||
if (dict)
|
||||
tmp->name = xmlDictLookup(dict, cur->name, -1);
|
||||
|
@ -2636,6 +2608,35 @@ xmlDumpNotationTable(xmlBufferPtr buf, xmlNotationTablePtr table) {
|
|||
(xmlDictOwns(dict, (const xmlChar *)(str)) == 0))) \
|
||||
xmlFree((char *)(str));
|
||||
|
||||
/**
|
||||
* xmlValidNormalizeString:
|
||||
* @str: a string
|
||||
*
|
||||
* Normalize a string in-place.
|
||||
*/
|
||||
static void
|
||||
xmlValidNormalizeString(xmlChar *str) {
|
||||
xmlChar *dst;
|
||||
const xmlChar *src;
|
||||
|
||||
if (str == NULL)
|
||||
return;
|
||||
src = str;
|
||||
dst = str;
|
||||
|
||||
while (*src == 0x20) src++;
|
||||
while (*src != 0) {
|
||||
if (*src == 0x20) {
|
||||
while (*src == 0x20) src++;
|
||||
if (*src != 0)
|
||||
*dst++ = 0x20;
|
||||
} else {
|
||||
*dst++ = *src++;
|
||||
}
|
||||
}
|
||||
*dst = 0;
|
||||
}
|
||||
|
||||
static int
|
||||
xmlIsStreaming(xmlValidCtxtPtr ctxt) {
|
||||
xmlParserCtxtPtr pctxt;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue