diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-04-07 21:53:57 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-04-07 21:53:57 +0000 |
commit | cf55c8e221c1d31a361f99ee49078d261cdf431c (patch) | |
tree | ffd732ba6a0d8ee6a30846cab129eb6143a244d8 /lib/System/Win32 | |
parent | a0562001d05101975ec88248a0bb5518074543dc (diff) | |
download | external_llvm-cf55c8e221c1d31a361f99ee49078d261cdf431c.zip external_llvm-cf55c8e221c1d31a361f99ee49078d261cdf431c.tar.gz external_llvm-cf55c8e221c1d31a361f99ee49078d261cdf431c.tar.bz2 |
Added method Path::getDirname().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49352 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Win32')
-rw-r--r-- | lib/System/Win32/Path.inc | 2 |
1 files changed, 2 insertions, 0 deletions
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 @@ Path::isRootDirectory() const { return len > 0 && path[len-1] == '/'; } +std::string Path::getDirname() const { return getDirnameCharSep('\\'); } + std::string Path::getBasename() const { // Find the last slash |