Subversion
|
Repository relative URLs. More...
Functions | |
svn_boolean_t | svn_path_is_repos_relative_url (const char *path) |
Return TRUE iff path is a repository-relative URL: specifically that it starts with the characters "^/". More... | |
svn_error_t * | svn_path_resolve_repos_relative_url (const char **absolute_url, const char *relative_url, const char *repos_root_url, apr_pool_t *pool) |
Set absolute_url to the absolute URL represented by relative_url relative to repos_root_url, preserving any peg revision specifier present in relative_url. More... | |
const char * | svn_path_illegal_path_escape (const char *path, apr_pool_t *pool) |
Repository relative URLs.
svn_boolean_t svn_path_is_repos_relative_url | ( | const char * | path | ) |
Return TRUE
iff path is a repository-relative URL: specifically that it starts with the characters "^/".
path is in UTF-8 encoding.
Does not check whether path is a properly URI-encoded, canonical, or valid in any other way.
svn_error_t* svn_path_resolve_repos_relative_url | ( | const char ** | absolute_url, |
const char * | relative_url, | ||
const char * | repos_root_url, | ||
apr_pool_t * | pool | ||
) |
Set absolute_url to the absolute URL represented by relative_url relative to repos_root_url, preserving any peg revision specifier present in relative_url.
Allocate absolute_url from pool.
relative_url is in repository-relative syntax: "^/[REL-URL][@PEG]"
repos_root_url is the absolute URL of the repository root.
All strings are in UTF-8 encoding.
repos_root_url and relative_url do not have to be properly URI-encoded, canonical, or valid in any other way. The caller is expected to perform canonicalization on absolute_url after the call to the function.