commit | 4a4f5ed1347c253af91cc0fb385e9deb9b4fdf44 | [log] [tgz] |
---|---|---|
author | Ted Kremenek <kremenek@apple.com> | Mon Apr 07 21:53:57 2008 +0000 |
committer | Ted Kremenek <kremenek@apple.com> | Mon Apr 07 21:53:57 2008 +0000 |
tree | ffd732ba6a0d8ee6a30846cab129eb6143a244d8 | |
parent | b7091432f8cace3d3cf2ea3cfbc2139f54ea7f00 [diff] |
Added method Path::getDirname(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49352 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/System/Win32/Path.inc b/lib/System/Win32/Path.inc index da29cd3..35bae33 100644 --- a/lib/System/Win32/Path.inc +++ b/lib/System/Win32/Path.inc
@@ -229,6 +229,8 @@ return len > 0 && path[len-1] == '/'; } +std::string Path::getDirname() const { return getDirnameCharSep('\\'); } + std::string Path::getBasename() const { // Find the last slash