]> 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:24 +0000 (09:37 -0500)
commit67d1f881eb85ebc483c634a717caadd422d669ef
tree504db97e9561929be4ee659c1d9a320583e423af
parent1031a1805bf774b242b4d476f70a417a133b6794
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