summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2002-12-11 23:13:33 (GMT)
committerBrad King <brad.king@kitware.com>2002-12-11 23:13:33 (GMT)
commit4888c088ae0ca829862e8b2f9568abca12dc34d1 (patch)
tree2c0fb825f1d1adff97d98373b555f00b84da14f7 /Source/cmSystemTools.h
parent5a321605bcc15c7e559c8da5168eef00796148b1 (diff)
downloadCMake-4888c088ae0ca829862e8b2f9568abca12dc34d1.zip
CMake-4888c088ae0ca829862e8b2f9568abca12dc34d1.tar.gz
CMake-4888c088ae0ca829862e8b2f9568abca12dc34d1.tar.bz2
ENH: Moved ExpandListVariables out of individual commands. Argument evaluation rules are now very consistent. Double quotes can always be used to create exactly one argument, regardless of contents inside.
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r--Source/cmSystemTools.h26
1 files changed, 4 insertions, 22 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h
index 0e41691..f9ff94f 100644
--- a/Source/cmSystemTools.h
+++ b/Source/cmSystemTools.h
@@ -56,8 +56,10 @@ public:
* strings into multiple arguements. A new vector is created
* containing the expanded versions of all arguments in argsIn.
*/
- static void ExpandListArguments(std::vector<std::string> const& argsIn,
- std::vector<std::string>& argsOut);
+ static void ExpandList(std::vector<std::string> const& argsIn,
+ std::vector<std::string>& argsOut);
+ static void ExpandListArgument(const std::string& arg,
+ std::vector<std::string>& argsOut);
/**
* Read a registry value
@@ -117,25 +119,6 @@ public:
///! Return true if a file exists in the current directory.
static bool FileExists(const char* filename);
-
- /**
- * Read a CMake command (or function) from an input file. This
- * returns the name of the function and a list of its
- * arguments. The last argument is the name of the file that
- * the ifstream points to, and is used for debug info only.
- */
- static bool ParseFunction(std::ifstream&,
- std::string& name,
- std::vector<std::string>& arguments,
- const char* filename, bool& parseError);
-
- /**
- * Extract white-space separated arguments from a string.
- * Double quoted strings are accepted with spaces.
- * This is called by ParseFunction.
- */
- static void GetArguments(std::string& line,
- std::vector<std::string>& arguments);
/**
* Given a string, replace any escape sequences with the corresponding
@@ -389,5 +372,4 @@ private:
static std::string s_Windows9xComspecSubstitute;
};
-
#endif