summaryrefslogtreecommitdiffstats
path: root/src/common/util/Path.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-09-10 03:42:59 +0000
committerDavid Robillard <d@drobilla.net>2006-09-10 03:42:59 +0000
commit8854610aac91caaf6bb8db782cc4c9bd2ca53c52 (patch)
treeb92d385755eec2404309aba384850396bedf0184 /src/common/util/Path.h
parenta90181962d3f9eca3e00f665465bbd66bdd79927 (diff)
downloadingen-8854610aac91caaf6bb8db782cc4c9bd2ca53c52.tar.gz
ingen-8854610aac91caaf6bb8db782cc4c9bd2ca53c52.tar.bz2
ingen-8854610aac91caaf6bb8db782cc4c9bd2ca53c52.zip
GUI redesigning.
git-svn-id: http://svn.drobilla.net/lad/ingen@125 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/common/util/Path.h')
-rw-r--r--src/common/util/Path.h5
1 files changed, 5 insertions, 0 deletions
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<char>& path)
+ {
+ return is_valid(string("/").append(path));
+ }
+
/** Convert a string to a valid full path.
*