[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");


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


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.