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

[TSVN] Re: Tag/Branch name checking suggestion.

From: Norbert Unterberg <nepo_at_gmx.net>
Date: 2005-01-19 22:45:45 CET

SteveKing schrieb:

> Does anyone know a good API function to test a whole path for validity?

How about:

CString strPath = <name of branch>;

if (strPath.FindOneOf(_T( "<>:\"|" ) != -1)
{
    error("Invalid character in path");
}

see
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/naming_a_file.asp

It does not catch all naming errors (like ".."), but it might be a good
start.

Norbert

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Wed Jan 19 22:46:47 2005

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