diff options
author | Philipp Stephani <phst@google.com> | 2017-12-10 16:53:01 +0100 |
---|---|---|
committer | Philipp Stephani <phst@google.com> | 2017-12-10 16:53:01 +0100 |
commit | 3951d39b40fa5fb9ceaa9182765ca64308c7f583 (patch) | |
tree | b3b327fdb22d6b7fd34143b6b8c91c248a817011 /doc | |
parent | 009ffa3fc8a4fbb5f79bdc764910149d0ea24b27 (diff) | |
download | jansson-3951d39b40fa5fb9ceaa9182765ca64308c7f583.zip jansson-3951d39b40fa5fb9ceaa9182765ca64308c7f583.tar.gz jansson-3951d39b40fa5fb9ceaa9182765ca64308c7f583.tar.bz2 |
Document that length-aware string functions have been added in 2.7
Diffstat (limited to 'doc')
-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 ====== |