1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 12:25:09 +03:00

uri: Fix documentation of xmlBuildRelativeURI

This commit is contained in:
Nick Wellnhofer 2024-06-26 14:15:26 +02:00
parent c195f06fac
commit e6f25fdc7c

13
uri.c
View File

@ -2495,12 +2495,10 @@ done:
* @valPtr: pointer to result URI
*
* Expresses the URI of the reference in terms relative to the
* base. Some examples of this operation include:
* base. Some examples of this operation include:
*
* base = "http://site1.com/docs/book1.html"
* URI input URI returned
* docs/pic1.gif pic1.gif
* docs/img/pic1.gif img/pic1.gif
* img/pic1.gif ../img/pic1.gif
* http://site1.com/docs/pic1.gif pic1.gif
* http://site2.com/docs/pic1.gif http://site2.com/docs/pic1.gif
*
@ -2511,13 +2509,6 @@ done:
* img/pic1.gif ../img/pic1.gif
* http://site1.com/docs/pic1.gif http://site1.com/docs/pic1.gif
*
*
* Note: if the URI reference is really weird or complicated, it may be
* worthwhile to first convert it into a "nice" one by calling
* xmlBuildURI (using 'base') before calling this routine,
* since this routine (for reasonable efficiency) assumes URI has
* already been through some validation.
*
* Available since 2.13.0.
*
* Returns 0 on success, -1 if a memory allocation failed or an error