diff options
author | Petri Lehtinen <petri@digip.org> | 2017-12-13 07:05:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-13 07:05:15 +0200 |
commit | 217859f8498bb2f666cb84e48a5741c43d9d8be0 (patch) | |
tree | b3b327fdb22d6b7fd34143b6b8c91c248a817011 | |
parent | 009ffa3fc8a4fbb5f79bdc764910149d0ea24b27 (diff) | |
parent | 3951d39b40fa5fb9ceaa9182765ca64308c7f583 (diff) | |
download | jansson-217859f8498bb2f666cb84e48a5741c43d9d8be0.zip jansson-217859f8498bb2f666cb84e48a5741c43d9d8be0.tar.gz jansson-217859f8498bb2f666cb84e48a5741c43d9d8be0.tar.bz2 |
Merge pull request #378 from phst/doc
Document that length-aware string functions have been added in 2.7
-rw-r--r-- | doc/apiref.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/apiref.rst b/doc/apiref.rst index 54d5c7e..7afeb21 100644 --- a/doc/apiref.rst +++ b/doc/apiref.rst @@ -332,6 +332,8 @@ length-aware functions if you wish to embed null bytes in strings. Like :func:`json_string`, but with explicit length, so *value* may contain null characters or not be null terminated. + .. versionadded:: 2.7 + .. function:: json_t *json_string_nocheck(const char *value) .. refcounting:: new @@ -347,6 +349,8 @@ length-aware functions if you wish to embed null bytes in strings. Like :func:`json_string_nocheck`, but with explicit length, so *value* may contain null characters or not be null terminated. + .. versionadded:: 2.7 + .. function:: const char *json_string_value(const json_t *string) Returns the associated value of *string* as a null terminated UTF-8 @@ -361,6 +365,8 @@ length-aware functions if you wish to embed null bytes in strings. Returns the length of *string* in its UTF-8 presentation, or zero if *string* is not a JSON string. + .. versionadded:: 2.7 + .. function:: int json_string_set(json_t *string, const char *value) Sets the associated value of *string* to *value*. *value* must be a @@ -372,6 +378,8 @@ length-aware functions if you wish to embed null bytes in strings. Like :func:`json_string_set`, but with explicit length, so *value* may contain null characters or not be null terminated. + .. versionadded:: 2.7 + .. function:: int json_string_set_nocheck(json_t *string, const char *value) Like :func:`json_string_set`, but doesn't check that *value* is @@ -384,6 +392,8 @@ length-aware functions if you wish to embed null bytes in strings. Like :func:`json_string_set_nocheck`, but with explicit length, so *value* may contain null characters or not be null terminated. + .. versionadded:: 2.7 + Number ====== |