[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

svn_uri_canonicalize() - normalizing the escaping

From: Julian Foad <julian.foad_at_wandisco.com>
Date: Thu, 11 Nov 2010 16:04:54 +0000

> /** Return a new uri like @a uri, but transformed such that some types
> * of uri specification redundancies are removed.
> *
> * This involves collapsing redundant "/./" elements, removing
> * multiple adjacent separator characters, removing trailing
> * separator characters, and possibly other semantically inoperative
> * transformations.
> *
> * If @a uri starts with a schema, this function also normalizes the
> * escaping of the path component by unescaping characters that don't
> * need escaping and escaping characters that do need escaping but
> * weren't.

Why normalize only if it starts with a schema? That sounds likely to
confuse the user.

- Julian

> * This functions supports URLs.
> *
> * The returned uri may be statically allocated or allocated from @a pool.
> *
> * @since New in 1.7.
> */
> const char *
> svn_uri_canonicalize(const char *uri,
> apr_pool_t *pool);
>
Received on 2010-11-11 17:05:37 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.