From a25e280234e735bdf451e75915b382ba325e437e Mon Sep 17 00:00:00 2001
From: Brad King <brad.king@kitware.com>
Date: Fri, 27 Aug 2010 10:15:16 -0400
Subject: [PATCH] KWSys: Improve SplitPath method documentation

Document explicitly that the first component always exists.  Fix the
documentation of SplitPathRootComponent to note that home directory
roots (~/ and ~u/) always have a trailing slash.
---
 SystemTools.hxx.in | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/SystemTools.hxx.in b/SystemTools.hxx.in
index ec70320..cf47923 100644
--- a/SystemTools.hxx.in
+++ b/SystemTools.hxx.in
@@ -372,8 +372,8 @@ public:
    *    "c:/" = Windows full path (can be any drive letter)
    *    "c:"  = Windows drive-letter relative path (can be any drive letter)
    *    "//"  = Network path
-   *    "~"   = Home path for current user
-   *    "~u"  = Home path for user 'u'
+   *    "~/"  = Home path for current user
+   *    "~u/" = Home path for user 'u'
    *    ""    = Relative path
    *
    * A pointer to the rest of the path after the root component is
@@ -385,7 +385,7 @@ public:
 
   /**
    * Split a path name into its basic components.  The first component
-   * is one of the roots returned by SplitPathRootComponent.
+   * always exists and is the root returned by SplitPathRootComponent.
    * The remaining components form the path.  If there is a trailing
    * slash then the last component is the empty string.  The
    * components can be recombined as "c[0]c[1]/c[2]/.../c[n]" to
-- 
GitLab