pub unsafe extern "C" fn uriRemoveBaseUriMmA(
dest: *mut UriUriA,
absoluteSource: *const UriUriA,
absoluteBase: *const UriUriA,
domainRootMode: UriBool,
memory: *mut UriMemoryManager,
) -> c_intExpand description
Tries to make a relative %URI (a reference) from an absolute %URI and a given base %URI. The resulting %URI is going to be relative if the absolute %URI and base %UI share both scheme and authority. If that is not the case, the result will still be an absolute URI (with scheme part if necessary). NOTE: On success you have to call uriFreeUriMembersMmA on \p dest manually later.
@param dest OUT: Result %URI @param absoluteSource IN: Absolute %URI to make relative @param absoluteBase IN: Base %URI @param domainRootMode IN: Create %URI with path relative to domain root @param memory IN: Memory manager to use, NULL for default libc @return Error code or 0 on success
@see uriRemoveBaseUriA @see uriAddBaseUriA @see uriAddBaseUriExA @see uriAddBaseUriExMmA @since 0.9.0