mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-27 18:50:07 +03:00
uri: Fix documentation of xmlBuildRelativeURI
This commit is contained in:
parent
c195f06fac
commit
e6f25fdc7c
13
uri.c
13
uri.c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user