mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
the uri arg to xmlNodeSetBase is really a const xmlChar* addin the
* tree.c include/libxml/tree.h: the uri arg to xmlNodeSetBase is really a const xmlChar* * xmlreader.c include/libxml/xmlreader.h: addin the xmlTextReaderConstString() to get an interned string from the reader Daniel
This commit is contained in:
@ -1,3 +1,11 @@
|
|||||||
|
Mon Sep 22 12:21:11 CEST 2003 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
|
* tree.c include/libxml/tree.h: the uri arg to xmlNodeSetBase is
|
||||||
|
really a const xmlChar*
|
||||||
|
* xmlreader.c include/libxml/xmlreader.h: addin the
|
||||||
|
xmlTextReaderConstString() to get an interned string from
|
||||||
|
the reader
|
||||||
|
|
||||||
Sun Sep 20 17:22:20 PDT 2003 William Brack <wbrack@mmm.com.hk>
|
Sun Sep 20 17:22:20 PDT 2003 William Brack <wbrack@mmm.com.hk>
|
||||||
|
|
||||||
* error.c: fixed a warning message (trivial)
|
* error.c: fixed a warning message (trivial)
|
||||||
|
@ -926,7 +926,7 @@ XMLPUBFUN xmlChar * XMLCALL
|
|||||||
xmlNodePtr cur);
|
xmlNodePtr cur);
|
||||||
XMLPUBFUN void XMLCALL
|
XMLPUBFUN void XMLCALL
|
||||||
xmlNodeSetBase (xmlNodePtr cur,
|
xmlNodeSetBase (xmlNodePtr cur,
|
||||||
xmlChar *uri);
|
const xmlChar *uri);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Removing content.
|
* Removing content.
|
||||||
|
@ -131,6 +131,10 @@ XMLPUBFUN const xmlChar * XMLCALL
|
|||||||
xmlTextReaderConstPrefix (xmlTextReaderPtr reader);
|
xmlTextReaderConstPrefix (xmlTextReaderPtr reader);
|
||||||
XMLPUBFUN const xmlChar * XMLCALL
|
XMLPUBFUN const xmlChar * XMLCALL
|
||||||
xmlTextReaderConstXmlLang (xmlTextReaderPtr reader);
|
xmlTextReaderConstXmlLang (xmlTextReaderPtr reader);
|
||||||
|
XMLPUBFUN const xmlChar * XMLCALL
|
||||||
|
xmlTextReaderConstString (xmlTextReaderPtr reader,
|
||||||
|
const xmlChar *str);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Methods of the XmlTextReader
|
* Methods of the XmlTextReader
|
||||||
*/
|
*/
|
||||||
|
2
tree.c
2
tree.c
@ -4550,7 +4550,7 @@ xmlNodeSetName(xmlNodePtr cur, const xmlChar *name) {
|
|||||||
* xml:base attribute.
|
* xml:base attribute.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
xmlNodeSetBase(xmlNodePtr cur, xmlChar* uri) {
|
xmlNodeSetBase(xmlNodePtr cur, const xmlChar* uri) {
|
||||||
xmlNsPtr ns;
|
xmlNsPtr ns;
|
||||||
|
|
||||||
if (cur == NULL) return;
|
if (cur == NULL) return;
|
||||||
|
18
xmlreader.c
18
xmlreader.c
@ -2991,6 +2991,24 @@ xmlTextReaderConstXmlLang(xmlTextReaderPtr reader) {
|
|||||||
return(ret);
|
return(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* xmlTextReaderConstString:
|
||||||
|
* @reader: the xmlTextReaderPtr used
|
||||||
|
* @str: the string to intern.
|
||||||
|
*
|
||||||
|
* Get an interned string from the reader, allows for example to
|
||||||
|
* speedup string name comparisons
|
||||||
|
*
|
||||||
|
* Returns an interned copy of the string or NULL in case of error. The
|
||||||
|
* string will be deallocated with the reader.
|
||||||
|
*/
|
||||||
|
const xmlChar *
|
||||||
|
xmlTextReaderConstString(xmlTextReaderPtr reader, const xmlChar *str) {
|
||||||
|
if (reader == NULL)
|
||||||
|
return(NULL);
|
||||||
|
return(CONSTSTR(str));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* xmlTextReaderNormalization:
|
* xmlTextReaderNormalization:
|
||||||
* @reader: the xmlTextReaderPtr used
|
* @reader: the xmlTextReaderPtr used
|
||||||
|
Reference in New Issue
Block a user