]> git.ipfire.org Git - thirdparty/asterisk.git/commit
strings/json: Add string delimter match, and object create with vars methods
authorKevin Harwell <kharwell@sangoma.com>
Thu, 21 Oct 2021 17:29:11 +0000 (12:29 -0500)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Thu, 28 Oct 2021 13:56:09 +0000 (08:56 -0500)
commited384e652c4812346e687e7a1ba6024943aa9bc9
tree85efc551e737f4ffc44b2df47ff26fd56a3db23a
parentba3f6c0b1eefa891ff36d30a3081d0894a6882be
strings/json: Add string delimter match, and object create with vars methods

Add a function to check if there is an exact match a one string between
delimiters in another string.

Add a function that will create an ast_json object out of a list of
Asterisk variables. An excludes string can also optionally be passed
in.

Also, add a macro to make it easier to get object integers.

Change-Id: I5f34f18e102126aef3997f19a553a266d70d6226
include/asterisk/json.h
include/asterisk/strings.h
main/json.c
main/strings.c
tests/test_json.c
tests/test_strings.c