From 8854610aac91caaf6bb8db782cc4c9bd2ca53c52 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 10 Sep 2006 03:42:59 +0000 Subject: GUI redesigning. git-svn-id: http://svn.drobilla.net/lad/ingen@125 a436a847-0d15-0410-975c-d299462d15a1 --- src/common/util/Path.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/common/util') diff --git a/src/common/util/Path.h b/src/common/util/Path.h index 197ffd16..c84607fb 100644 --- a/src/common/util/Path.h +++ b/src/common/util/Path.h @@ -96,6 +96,11 @@ public: return true; } + static bool is_valid_name(const std::basic_string& path) + { + return is_valid(string("/").append(path)); + } + /** Convert a string to a valid full path. * -- cgit v1.2.1