diff options
author | Alex Turbov <i.zaufi@gmail.com> | 2018-02-11 13:20:57 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-02-16 15:04:47 (GMT) |
commit | 689eeb67cb87a9ed1d91a4971806488d00e68f42 (patch) | |
tree | 403880ec3c332705d11c5293940e143fa1a4aa9c /Help | |
parent | e24cda008e3ea1cbb22d17d29c5c39999facb4b7 (diff) | |
download | CMake-689eeb67cb87a9ed1d91a4971806488d00e68f42.zip CMake-689eeb67cb87a9ed1d91a4971806488d00e68f42.tar.gz CMake-689eeb67cb87a9ed1d91a4971806488d00e68f42.tar.bz2 |
string: Add JOIN subcommand
This is just like CONCAT but accepts a glue string to put between
each value. `JOIN ""` is equivalent to `CONCAT`.
Diffstat (limited to 'Help')
-rw-r--r-- | Help/command/string.rst | 10 | ||||
-rw-r--r-- | Help/release/dev/string-join.rst | 5 |
2 files changed, 15 insertions, 0 deletions
diff --git a/Help/command/string.rst b/Help/command/string.rst index fb3893f..709559d 100644 --- a/Help/command/string.rst +++ b/Help/command/string.rst @@ -151,6 +151,16 @@ CONCAT Concatenate all the input arguments together and store the result in the named output variable. +JOIN +"""" + +:: + + string(JOIN <glue> <output variable> [<input>...]) + +Join all the input arguments together using the glue +string and store the result in the named output variable. + TOLOWER """"""" diff --git a/Help/release/dev/string-join.rst b/Help/release/dev/string-join.rst new file mode 100644 index 0000000..5cca711 --- /dev/null +++ b/Help/release/dev/string-join.rst @@ -0,0 +1,5 @@ +string-join +----------- + +* The :command:`string` command learned a ``JOIN`` sub-command + to concatenate input strings separated by a glue string. |