mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 23:28:32 -05:00
cmSystemTools: Remove ExpandListArgument methods
This commit is contained in:
@@ -28,49 +28,6 @@ public:
|
||||
typedef cmsys::SystemTools Superclass;
|
||||
typedef cmProcessOutput::Encoding Encoding;
|
||||
|
||||
/**
|
||||
* Expand the ; separated string @a arg into multiple arguments.
|
||||
* All found arguments are appended to @a argsOut.
|
||||
*/
|
||||
static void ExpandListArgument(cm::string_view arg,
|
||||
std::vector<std::string>& argsOut,
|
||||
bool emptyArgs = false);
|
||||
|
||||
/**
|
||||
* Expand out any arguments in the string range [@a first, @a last) that have
|
||||
* ; separated strings into multiple arguments. All found arguments are
|
||||
* appended to @a argsOut.
|
||||
*/
|
||||
template <class InputIt>
|
||||
static void ExpandLists(InputIt first, InputIt last,
|
||||
std::vector<std::string>& argsOut)
|
||||
{
|
||||
for (; first != last; ++first) {
|
||||
cmExpandList(*first, argsOut);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Same as ExpandListArgument but a new vector is created containing
|
||||
* the expanded arguments from the string @a arg.
|
||||
*/
|
||||
static std::vector<std::string> ExpandedListArgument(cm::string_view arg,
|
||||
bool emptyArgs = false);
|
||||
|
||||
/**
|
||||
* Same as ExpandList but a new vector is created containing the expanded
|
||||
* versions of all arguments in the string range [@a first, @a last).
|
||||
*/
|
||||
template <class InputIt>
|
||||
static std::vector<std::string> ExpandedLists(InputIt first, InputIt last)
|
||||
{
|
||||
std::vector<std::string> argsOut;
|
||||
for (; first != last; ++first) {
|
||||
ExpandListArgument(*first, argsOut);
|
||||
}
|
||||
return argsOut;
|
||||
}
|
||||
|
||||
/**
|
||||
* Look for and replace registry values in a string
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user