resolve_relative
Description:
[ Version ( since = "2.66" ) ]
public static string resolve_relative (string base_uri_string, string uri_string, UriFlags flags) throws UriError
public static string resolve_relative (string base_uri_string, string uri_string, UriFlags flags) throws UriError
Parses uri_ref
according to flags
and, if it is a [relative URI](relative
-and-absolute-uris), resolves
it relative to base_uri_string
.
If the result is not a valid absolute URI, it will be discarded, and an error returned.
(If base_uri_string
is null, this just returns uri_ref
, or
null if uri_ref
is invalid or not absolute.)
Parameters:
base_uri_string |
a string representing a base URI |
flags |
flags describing how to parse |
uri_ref |
a string representing a relative or absolute URI |
Returns:
the resolved URI string, or NULL on error. |