summaryrefslogtreecommitdiffstats
path: root/Source/cmStringAlgorithms.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-05-01 15:38:16 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-05-01 15:38:32 (GMT)
commit4dc47f82c2a3fc492d4cb94b4d96a24b9fc9cc47 (patch)
treea76938b9dd21854b079cd0a23de21b1e61cb1eeb /Source/cmStringAlgorithms.h
parentc2100084c85aed33eea1f4abe83442dddc393137 (diff)
parent241304190ffdf9cc7d4ede0601da370b111468cc (diff)
downloadCMake-4dc47f82c2a3fc492d4cb94b4d96a24b9fc9cc47.zip
CMake-4dc47f82c2a3fc492d4cb94b4d96a24b9fc9cc47.tar.gz
CMake-4dc47f82c2a3fc492d4cb94b4d96a24b9fc9cc47.tar.bz2
Merge topic 'CMake-uses-cmList-class'
241304190f CMake code rely on cmList class for CMake lists management (part. 2) 87fe031a07 cmList class: various enhancements Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8441
Diffstat (limited to 'Source/cmStringAlgorithms.h')
-rw-r--r--Source/cmStringAlgorithms.h33
1 files changed, 0 insertions, 33 deletions
diff --git a/Source/cmStringAlgorithms.h b/Source/cmStringAlgorithms.h
index 4ccbb8e..4a9840b 100644
--- a/Source/cmStringAlgorithms.h
+++ b/Source/cmStringAlgorithms.h
@@ -14,7 +14,6 @@
#include <cm/string_view>
-#include "cmList.h"
#include "cmRange.h"
#include "cmValue.h"
@@ -89,38 +88,6 @@ std::string cmJoin(cmStringRange const& rng, cm::string_view separator,
/** Extract tokens that are separated by any of the characters in @a sep. */
std::vector<std::string> cmTokenize(cm::string_view str, cm::string_view sep);
-/**
- * Expand the ; separated string @a arg into multiple arguments.
- * All found arguments are appended to @a argsOut.
- */
-inline void cmExpandList(cm::string_view arg,
- std::vector<std::string>& argsOut,
- bool emptyArgs = false)
-{
- cmList::append(arg, argsOut,
- emptyArgs ? cmList::EmptyElements::Yes
- : cmList::EmptyElements::No);
-}
-inline void cmExpandList(cmValue arg, std::vector<std::string>& argsOut,
- bool emptyArgs = false)
-{
- cmList::append(arg, argsOut,
- emptyArgs ? cmList::EmptyElements::Yes
- : cmList::EmptyElements::No);
-}
-
-/**
- * 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>
-void cmExpandLists(InputIt first, InputIt last,
- std::vector<std::string>& argsOut)
-{
- cmList::append(first, last, argsOut);
-}
-
/** Concatenate string pieces into a single string. */
std::string cmCatViews(
std::initializer_list<std::pair<cm::string_view, std::string*>> views);