diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2023-04-20 15:01:54 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-04-20 15:02:14 (GMT) |
commit | c36f03bfecbb8c2331b66fec615c6d30917ae64d (patch) | |
tree | 7eff3ccf1b1b3081d4e8a82e6336fc000c7326f3 /Help/command/list.rst | |
parent | 4862d3e90decc1df37cc7386e4b90818706b2bbb (diff) | |
parent | 31675964e7ba37f1412aaa95af4199e9b62e8c08 (diff) | |
download | CMake-c36f03bfecbb8c2331b66fec615c6d30917ae64d.zip CMake-c36f03bfecbb8c2331b66fec615c6d30917ae64d.tar.gz CMake-c36f03bfecbb8c2331b66fec615c6d30917ae64d.tar.bz2 |
Merge topic 'GenEx-list'
31675964e7 GenEx LIST: list operations
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8410
Diffstat (limited to 'Help/command/list.rst')
-rw-r--r-- | Help/command/list.rst | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/Help/command/list.rst b/Help/command/list.rst index 191003a..0c7a562 100644 --- a/Help/command/list.rst +++ b/Help/command/list.rst @@ -188,7 +188,7 @@ For more information on regular expressions look under .. versionadded:: 3.12 - Transforms the list by applying an action to all or, by specifying a + Transforms the list by applying an ``<ACTION>`` to all or, by specifying a ``<SELECTOR>``, to the selected elements of the list, storing the result in-place or in the specified output variable. @@ -205,42 +205,42 @@ For more information on regular expressions look under :command:`APPEND <string(APPEND)>`, :command:`PREPEND <string(PREPEND)>` Append, prepend specified value to each element of the list. - .. code-block:: cmake - - list(TRANSFORM <list> <APPEND|PREPEND> <value> ...) + .. signature:: + list(TRANSFORM <list> (APPEND|PREPEND) <value> ...) + :target: TRANSFORM_APPEND - :command:`TOUPPER <string(TOUPPER)>`, :command:`TOLOWER <string(TOLOWER)>` - Convert each element of the list to upper, lower characters. + :command:`TOLOWER <string(TOLOWER)>`, :command:`TOUPPER <string(TOUPPER)>` + Convert each element of the list to lower, upper characters. - .. code-block:: cmake - - list(TRANSFORM <list> <TOLOWER|TOUPPER> ...) + .. signature:: + list(TRANSFORM <list> (TOLOWER|TOUPPER) ...) + :target: TRANSFORM_TOLOWER :command:`STRIP <string(STRIP)>` Remove leading and trailing spaces from each element of the list. - .. code-block:: cmake - + .. signature:: list(TRANSFORM <list> STRIP ...) + :target: TRANSFORM_STRIP :command:`GENEX_STRIP <string(GENEX_STRIP)>` Strip any :manual:`generator expressions <cmake-generator-expressions(7)>` from each element of the list. - .. code-block:: cmake - + .. signature:: list(TRANSFORM <list> GENEX_STRIP ...) + :target: TRANSFORM_GENEX_STRIP :command:`REPLACE <string(REGEX REPLACE)>`: Match the regular expression as many times as possible and substitute the replacement expression for the match for each element of the list (same semantic as :command:`string(REGEX REPLACE)`). - .. code-block:: cmake - + .. signature:: list(TRANSFORM <list> REPLACE <regular_expression> <replace_expression> ...) + :target: TRANSFORM_REPLACE ``<SELECTOR>`` determines which elements of the list will be transformed. Only one type of selector can be specified at a time. |