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

Re: [PATCH] First cut at 1954 solution

From: VK Sameer <sameer_at_collab.net>
Date: 2004-12-07 03:14:11 CET

On Tue, 2004-12-07 at 01:46, Peter N. Lundblad wrote:
> On Mon, 6 Dec 2004, C. Michael Pilato wrote:
>
> > VK Sameer <sameer@collab.net> writes:
> >
> > > + * First check whether all characters are valid in UTF8
> > > + * Next check whether all characters are non-control characters
> > > + * Currently, all other paths are allowed.
> >
> > Hrm... this is somewhere between "leaking the details of the
> > implmentation" and "actually useful information". I think it's the
> > "first...next..." that's bugging me.
> >
> Just documenting what's a valid path would be better.

OK, will do.

> > > +svn_error_t *svn_path_is_valid_in_svn (const char *path,
> > > + apr_size_t len,
> > > + apr_pool_t *pool);
>
> To me, this name sounds like a question that returns a boolean. Would
> replacing is with ensure make sense?

How about verify instead? Ensure seems to have connotations of modifying
the path if it's not valid.

Thanks
Sameer

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Dec 7 03:15:31 2004

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.