]> 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)
committerGeorge Joseph <gjoseph@digium.com>
Thu, 28 Oct 2021 14:37:07 +0000 (09:37 -0500)
commitd112916e98bfc2479e511ed325fb0988994b4dee
tree06e01f355f737b9ef455d6363c0e08599fbc5aad
parent669e16b3dccd7c2fbbc2e4b44b0a0da4e893acc5
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