mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 19:00:54 -06:00
Help: Improve string(JSON) synopsis document source readability
Avoid spaces in signature target names.
This commit is contained in:
@@ -45,16 +45,16 @@ Synopsis
|
||||
|
||||
`JSON`_
|
||||
string(JSON <out-var> [ERROR_VARIABLE <error-var>]
|
||||
{`GET <JSON GET_>`_ | `TYPE <JSON TYPE_>`_ | `LENGTH <JSON LENGTH_>`_ | `REMOVE <JSON REMOVE_>`_}
|
||||
{`GET <JSON-GET_>`_ | `TYPE <JSON-TYPE_>`_ | `LENGTH <JSON-LENGTH_>`_ | `REMOVE <JSON-REMOVE_>`_}
|
||||
<json-string> <member|index> [<member|index> ...])
|
||||
string(JSON <out-var> [ERROR_VARIABLE <error-var>]
|
||||
`MEMBER <JSON MEMBER_>`_ <json-string>
|
||||
`MEMBER <JSON-MEMBER_>`_ <json-string>
|
||||
[<member|index> ...] <index>)
|
||||
string(JSON <out-var> [ERROR_VARIABLE <error-var>]
|
||||
`SET <JSON SET_>`_ <json-string>
|
||||
`SET <JSON-SET_>`_ <json-string>
|
||||
<member|index> [<member|index> ...] <value>)
|
||||
string(JSON <out-var> [ERROR_VARIABLE <error-var>]
|
||||
`EQUAL <JSON EQUAL_>`_ <json-string1> <json-string2>)
|
||||
`EQUAL <JSON-EQUAL_>`_ <json-string1> <json-string2>)
|
||||
|
||||
Search and Replace
|
||||
^^^^^^^^^^^^^^^^^^
|
||||
@@ -522,7 +522,7 @@ Functionality for querying a JSON string.
|
||||
.. signature::
|
||||
string(JSON <out-var> [ERROR_VARIABLE <error-variable>]
|
||||
GET <json-string> <member|index> [<member|index> ...])
|
||||
:target: JSON GET
|
||||
:target: JSON-GET
|
||||
|
||||
Get an element from ``<json-string>`` at the location given
|
||||
by the list of ``<member|index>`` arguments.
|
||||
@@ -534,7 +534,7 @@ Functionality for querying a JSON string.
|
||||
.. signature::
|
||||
string(JSON <out-var> [ERROR_VARIABLE <error-variable>]
|
||||
TYPE <json-string> <member|index> [<member|index> ...])
|
||||
:target: JSON TYPE
|
||||
:target: JSON-TYPE
|
||||
|
||||
Get the type of an element in ``<json-string>`` at the location
|
||||
given by the list of ``<member|index>`` arguments. The ``<out-var>``
|
||||
@@ -545,7 +545,7 @@ Functionality for querying a JSON string.
|
||||
string(JSON <out-var> [ERROR_VARIABLE <error-var>]
|
||||
MEMBER <json-string>
|
||||
[<member|index> ...] <index>)
|
||||
:target: JSON MEMBER
|
||||
:target: JSON-MEMBER
|
||||
|
||||
Get the name of the ``<index>``-th member in ``<json-string>``
|
||||
at the location given by the list of ``<member|index>`` arguments.
|
||||
@@ -554,7 +554,7 @@ Functionality for querying a JSON string.
|
||||
.. signature::
|
||||
string(JSON <out-var> [ERROR_VARIABLE <error-variable>]
|
||||
LENGTH <json-string> [<member|index> ...])
|
||||
:target: JSON LENGTH
|
||||
:target: JSON-LENGTH
|
||||
|
||||
Get the length of an element in ``<json-string>`` at the location
|
||||
given by the list of ``<member|index>`` arguments.
|
||||
@@ -563,7 +563,7 @@ Functionality for querying a JSON string.
|
||||
.. signature::
|
||||
string(JSON <out-var> [ERROR_VARIABLE <error-variable>]
|
||||
REMOVE <json-string> <member|index> [<member|index> ...])
|
||||
:target: JSON REMOVE
|
||||
:target: JSON-REMOVE
|
||||
|
||||
Remove an element from ``<json-string>`` at the location
|
||||
given by the list of ``<member|index>`` arguments. The JSON string
|
||||
@@ -572,7 +572,7 @@ Functionality for querying a JSON string.
|
||||
.. signature::
|
||||
string(JSON <out-var> [ERROR_VARIABLE <error-variable>]
|
||||
SET <json-string> <member|index> [<member|index> ...] <value>)
|
||||
:target: JSON SET
|
||||
:target: JSON-SET
|
||||
|
||||
Set an element in ``<json-string>`` at the location
|
||||
given by the list of ``<member|index>`` arguments to ``<value>``.
|
||||
@@ -584,7 +584,7 @@ Functionality for querying a JSON string.
|
||||
.. signature::
|
||||
string(JSON <out-var> [ERROR_VARIABLE <error-var>]
|
||||
EQUAL <json-string1> <json-string2>)
|
||||
:target: JSON EQUAL
|
||||
:target: JSON-EQUAL
|
||||
|
||||
Compare the two JSON objects given by ``<json-string1>``
|
||||
and ``<json-string2>`` for equality. The contents of ``<json-string1>``
|
||||
|
||||
Reference in New Issue
Block a user