diff options
author | Brad King <brad.king@kitware.com> | 2005-02-10 19:19:06 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-02-10 19:19:06 (GMT) |
commit | 23276ca3a29a4a6a79b54d77a1ec5bfd8f0f381a (patch) | |
tree | 59737986b60b84650107dc3294546480a744d322 /Source/kwsys/SystemTools.hxx.in | |
parent | 3b008ea03b8d35d57837711943dda37dc3951181 (diff) | |
download | CMake-23276ca3a29a4a6a79b54d77a1ec5bfd8f0f381a.zip CMake-23276ca3a29a4a6a79b54d77a1ec5bfd8f0f381a.tar.gz CMake-23276ca3a29a4a6a79b54d77a1ec5bfd8f0f381a.tar.bz2 |
ENH: Initializing translation map using the PWD environment variable and getcwd functions to automatically translate logical paths involving the current working directory. Also added the JoinPath method to aid users of the SplitPath method.
Diffstat (limited to 'Source/kwsys/SystemTools.hxx.in')
-rw-r--r-- | Source/kwsys/SystemTools.hxx.in | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/kwsys/SystemTools.hxx.in b/Source/kwsys/SystemTools.hxx.in index e65ee05..4e042ff 100644 --- a/Source/kwsys/SystemTools.hxx.in +++ b/Source/kwsys/SystemTools.hxx.in @@ -254,7 +254,14 @@ public: */ static void SplitPath(const char* p, kwsys_stl::vector<kwsys_stl::string>& components); - + + /** + * Join components of a path name into a single string. See + * SplitPath for the format of the components. + */ + static kwsys_stl::string + JoinPath(const kwsys_stl::vector<kwsys_stl::string>& components); + ///! return path of a full filename (no trailing slashes). static kwsys_stl::string GetFilenamePath(const kwsys_stl::string&); |