svn_uri_split

Function svn_uri_split 

Source
pub unsafe extern "C" fn svn_uri_split(
    dirpath: *mut *const c_char,
    base_name: *mut *const c_char,
    uri: *const c_char,
    result_pool: *mut apr_pool_t,
)
Expand description

Divide the canonicalized @a uri into a uri @a *dirpath and a (URI-decoded) relpath @a *base_name.

If @a dirpath or @a base_name is NULL, then don’t set that one.

Either @a dirpath or @a base_name may be @a uri’s own address, but they may not both be the same address, or the results are undefined.

If @a uri has two or more components, the separator between @a dirpath and @a base_name is not included in either of the new names.

Examples:

  • "http://server/foo/bar"  ==>  "http://server/foo" and "bar"

Allocate the result in @a result_pool.

@since New in 1.7.