diff options
author | John Biddiscombe <jbiddiscombe@skippingmouse.co.uk> | 2001-09-01 20:13:56 (GMT) |
---|---|---|
committer | John Biddiscombe <jbiddiscombe@skippingmouse.co.uk> | 2001-09-01 20:13:56 (GMT) |
commit | 5ac8ecd9d2d94277c1758791cf863be699ce2ec8 (patch) | |
tree | 5db5e9bf388debc0f5681f00d8d5f01392565205 /Source/cmSystemTools.h | |
parent | 0645a5006166f557524eb31dd18788370f9f5d19 (diff) | |
download | CMake-5ac8ecd9d2d94277c1758791cf863be699ce2ec8.zip CMake-5ac8ecd9d2d94277c1758791cf863be699ce2ec8.tar.gz CMake-5ac8ecd9d2d94277c1758791cf863be699ce2ec8.tar.bz2 |
ENH: Windows and Unix slash conversions return a char*, clean function
seperated from Convert function
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r-- | Source/cmSystemTools.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h index 08b6ee1..f6b4356 100644 --- a/Source/cmSystemTools.h +++ b/Source/cmSystemTools.h @@ -98,13 +98,18 @@ public: /** * Replace Windows file system slashes with Unix-style slashes. */ - static void ConvertToUnixSlashes(std::string& path); + static const char *ConvertToUnixSlashes(std::string& path); + + /** + * Replace Unix file system slashes with Windows-style slashes + */ + static const char *ConvertToWindowsSlashes(std::string& path); /** * Replace Unix file system slashes with Windows-style slashes and - * remove any duplicate slashes to clean the path. + * remove any duplicate \\ slashes to clean the path. */ - static void CleanUpWindowsSlashes(std::string& path); + static const char *ConvertToWindowsSlashesAndCleanUp(std::string& path); ///! Return true if a file exists in the current directory. static bool FileExists(const char* filename); |