[][src]Function lilv_sys::lilv_file_uri_parse

pub unsafe extern "C" fn lilv_file_uri_parse(
    uri: *const c_char,
    hostname: *mut *mut c_char
) -> *mut c_char

Convert a file URI string to a local path string. For example, "file://foo/bar%20one/baz.ttl" returns "/foo/bar one/baz.ttl". Return value must be freed by caller with lilv_free(). @param uri The file URI to parse. @param hostname If non-NULL, set to the hostname in the URI, if any. @return uri converted to a path, or NULL on failure (URI is not local).