diff options
author | Craig Scott <craig.scott@crascit.com> | 2020-10-24 11:48:30 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2020-10-24 11:58:42 (GMT) |
commit | 95c14579f2b36e71bd217c9b03a2e20767650ecf (patch) | |
tree | 15d0db55cc06f68dc1024c7a781b16eefbf08365 /Help/command/string.rst | |
parent | f2a59d400e9ec2e937f6000000c2e9860e388ca7 (diff) | |
download | CMake-95c14579f2b36e71bd217c9b03a2e20767650ecf.zip CMake-95c14579f2b36e71bd217c9b03a2e20767650ecf.tar.gz CMake-95c14579f2b36e71bd217c9b03a2e20767650ecf.tar.bz2 |
Help: Cleanup typos and grammar for the 3.19 release
Diffstat (limited to 'Help/command/string.rst')
-rw-r--r-- | Help/command/string.rst | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Help/command/string.rst b/Help/command/string.rst index 0bc2b48..0c2f57e 100644 --- a/Help/command/string.rst +++ b/Help/command/string.rst @@ -484,12 +484,12 @@ where each ``x`` represents a lower case hexadecimal character. Where required, an uppercase representation can be requested with the optional ``UPPER`` flag. +.. _JSON: + JSON ^^^^ -.. _JSON: - -Functionality for querying a JSON string +Functionality for querying a JSON string. .. _GET: .. code-block:: cmake @@ -522,7 +522,7 @@ will be set to one of ``NULL``, ``NUMBER``, ``STRING``, ``BOOLEAN``, MEMBER <json-string> [<member|index> ...] <index>) -Get the name of the ``<index>``:th member in ``<json-string>`` at the location +Get the name of the ``<index>``-th member in ``<json-string>`` at the location given by the list of ``<member|index>`` arguments. Requires an element of object type. @@ -534,7 +534,7 @@ Requires an element of object type. Get the length of an element in ``<json-string>`` at the location given by the list of ``<member|index>`` arguments. -Required an element of array or object type. +Requires an element of array or object type. .. _REMOVE: .. code-block:: cmake @@ -544,7 +544,7 @@ Required an element of array or object type. Remove an element from ``<json-string>`` at the location given by the list of ``<member|index>`` arguments. The JSON string -without the removed element will we written in ``<out-var>``. +without the removed element will be stored in ``<out-var>``. .. _SET: .. code-block:: cmake @@ -566,8 +566,8 @@ Compare the two JSON objects given by ``<json-string1>`` and ``<json-string2>`` for equality -If the optional ``ERROR_VARIABLE`` argument is given errors will be -reported in ``<error-variable>``. If no error occurs the ``<error-variable>`` +If the optional ``ERROR_VARIABLE`` argument is given, errors will be +reported in ``<error-variable>``. If no error occurs, the ``<error-variable>`` will be set to ``NOTFOUND``. If ``ERROR_VARIABLE`` is not set a CMake error will be issued. When an error occurs the ``<out-var>`` will be set to |