diff options
author | glen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-03 16:14:46 +0000 |
---|---|---|
committer | glen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-03 16:14:46 +0000 |
commit | 52ab8f9091d3892f5528d5a71655d75635d1e66c (patch) | |
tree | c66d682d7753e3021eb3072d32517334199e779b /base/file_util.h | |
parent | 5d6c69626c90ffce59fcb13eb8e66a29d400907b (diff) | |
download | chromium_src-52ab8f9091d3892f5528d5a71655d75635d1e66c.zip chromium_src-52ab8f9091d3892f5528d5a71655d75635d1e66c.tar.gz chromium_src-52ab8f9091d3892f5528d5a71655d75635d1e66c.tar.bz2 |
Always show file extensions in the shelf.
BUG=1208
Review URL: http://codereview.chromium.org/8991
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4450 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util.h')
-rw-r--r-- | base/file_util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/base/file_util.h b/base/file_util.h index 6126c105..127afd0 100644 --- a/base/file_util.h +++ b/base/file_util.h @@ -69,6 +69,9 @@ std::wstring GetFilenameFromPath(const std::wstring& path); // the file has no extension. std::wstring GetFileExtensionFromPath(const std::wstring& path); +// Returns 'jojo' for path "C:\pics\jojo.jpg". +std::wstring GetFilenameWithoutExtensionFromPath(const std::wstring& path); + // Returns the directory component of a path, without the trailing // path separator, or an empty string on error. The function does not // check for the existence of the path, so if it is passed a directory |