summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/SystemTools.hxx.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-06-23 12:56:22 (GMT)
committerBrad King <brad.king@kitware.com>2003-06-23 12:56:22 (GMT)
commit26d638c5d5461600ff9d17b282bcc53bbc562033 (patch)
treea376af10ced987df40326128f2f5604468bd2155 /Source/kwsys/SystemTools.hxx.in
parentbe1fd8bfb58912f3fc518a4a6641d0a99c737231 (diff)
downloadCMake-26d638c5d5461600ff9d17b282bcc53bbc562033.zip
CMake-26d638c5d5461600ff9d17b282bcc53bbc562033.tar.gz
CMake-26d638c5d5461600ff9d17b282bcc53bbc562033.tar.bz2
ENH: Removed cmake-specific functions.
Diffstat (limited to 'Source/kwsys/SystemTools.hxx.in')
-rw-r--r--Source/kwsys/SystemTools.hxx.in34
1 files changed, 4 insertions, 30 deletions
diff --git a/Source/kwsys/SystemTools.hxx.in b/Source/kwsys/SystemTools.hxx.in
index 98cb71b..1c1a2b4 100644
--- a/Source/kwsys/SystemTools.hxx.in
+++ b/Source/kwsys/SystemTools.hxx.in
@@ -84,11 +84,6 @@ public:
static bool DeleteRegistryValue(const char *key);
/**
- * Look for and replace registry values in a string
- */
- static void ExpandRegistryValues(kwsys_std::string& source);
-
- /**
* Return a capitalized string (i.e the first letter is uppercased,
* all other are lowercased).
*/
@@ -115,15 +110,6 @@ public:
static void ConvertToUnixSlashes(kwsys_std::string& path);
/**
- * Platform independent escape spaces, unix uses backslash,
- * windows double quotes the string.
- */
- static kwsys_std::string EscapeSpaces(const char* str);
-
- /** Escape quotes in a string. */
- static kwsys_std::string EscapeQuotes(const char* str);
-
- /**
* For windows this calles ConvertToWindowsOutputPath and for unix
* it calls ConvertToUnixOutputPath
*/
@@ -180,21 +166,6 @@ public:
///! return true if the file is a directory.
static bool FileIsDirectory(const char* name);
- static void Glob(const char *directory, const char *regexp,
- kwsys_std::vector<kwsys_std::string>& files);
- static void GlobDirs(const char *fullPath, kwsys_std::vector<kwsys_std::string>& files);
-
- /**
- * Try to find a list of files that match the "simple" globbing
- * expression. At this point in time the globbing expressions have
- * to be in form: /directory/partial_file_name*. The * character has
- * to be at the end of the string and it does not support ?
- * []... The optional argument type specifies what kind of files you
- * want to find. 0 means all files, -1 means directories, 1 means
- * files only. This method returns true if search was succesfull.
- */
- static bool SimpleGlob(const kwsys_std::string& glob, kwsys_std::vector<kwsys_std::string>& files,
- int type = 0);
static kwsys_std::string GetCurrentWorkingDirectory();
@@ -230,9 +201,12 @@ public:
static void SplitProgramFromArgs(const char* path,
kwsys_std::string& program, kwsys_std::string& args);
- ///! return file extension of a full filename (dot included).
+ ///! return longest file extension of a full filename (dot included).
static kwsys_std::string GetFilenameExtension(const kwsys_std::string&);
+ ///! return shortest file extension of a full filename (dot included).
+ static kwsys_std::string GetFilenameLastExtension(const kwsys_std::string& filename);
+
///! return file name without extension of a full filename.
static kwsys_std::string GetFilenameWithoutExtension(const kwsys_std::string&);