ENH: Move relative path to kwsys

This commit is contained in:
Andy Cedilnik
2006-02-07 10:23:17 -05:00
parent f71a085f74
commit e5a8e115bc
4 changed files with 123 additions and 98 deletions
+1 -8
View File
@@ -285,14 +285,7 @@ public:
from /usr/src to /usr/src/test/blah/foo.cpp -> test/blah/foo.cpp
*/
static std::string RelativePath(const char* local, const char* remote);
/** split a path by separator into an array of strings, default is /.
If isPath is true then the string is treated like a path and if
s starts with a / then the first element of the returned array will
be /, so /foo/bar will be [/, foo, bar]
*/
static std::vector<cmStdString> SplitString(const char* s, char separator = '/',
bool isPath = false);
/** put a string into the environment
of the form var=value */
static bool PutEnv(const char* value);