summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/SystemTools.hxx.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-06-09 15:03:34 (GMT)
committerBrad King <brad.king@kitware.com>2017-06-09 15:03:34 (GMT)
commit3d1c3e0dcf78849b38ab620ef36c715997af0088 (patch)
tree5f024bf5ad620c2c117d8e4a925b62ef4432cfa3 /Source/kwsys/SystemTools.hxx.in
parent591557ba450f1f24610ea0eefcb4e1d7665fae25 (diff)
parenta32758782c953a333c0dd1e8553aee66a4404ee5 (diff)
downloadCMake-3d1c3e0dcf78849b38ab620ef36c715997af0088.zip
CMake-3d1c3e0dcf78849b38ab620ef36c715997af0088.tar.gz
CMake-3d1c3e0dcf78849b38ab620ef36c715997af0088.tar.bz2
Merge branch 'upstream-KWSys' into update-kwsys
* upstream-KWSys: KWSys 2017-06-09 (a700e2ab)
Diffstat (limited to 'Source/kwsys/SystemTools.hxx.in')
-rw-r--r--Source/kwsys/SystemTools.hxx.in12
1 files changed, 8 insertions, 4 deletions
diff --git a/Source/kwsys/SystemTools.hxx.in b/Source/kwsys/SystemTools.hxx.in
index 5e091c2..1672e92 100644
--- a/Source/kwsys/SystemTools.hxx.in
+++ b/Source/kwsys/SystemTools.hxx.in
@@ -461,6 +461,10 @@ public:
* produce the original path. Home directory references are
* automatically expanded if expand_home_dir is true and this
* platform supports them.
+ *
+ * This does *not* normalize the input path. All components are
+ * preserved, including empty ones. Typically callers should use
+ * this only on paths that have already been normalized.
*/
static void SplitPath(const std::string& p,
std::vector<std::string>& components,
@@ -469,15 +473,15 @@ public:
/**
* Join components of a path name into a single string. See
* SplitPath for the format of the components.
+ *
+ * This does *not* normalize the input path. All components are
+ * preserved, including empty ones. Typically callers should use
+ * this only on paths that have already been normalized.
*/
static std::string JoinPath(const std::vector<std::string>& components);
static std::string JoinPath(std::vector<std::string>::const_iterator first,
std::vector<std::string>::const_iterator last);
- /** Removes empty components from path.
- */
- static void RemoveEmptyPathElements(std::vector<std::string>& path);
-
/**
* Compare a path or components of a path.
*/