]> 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:58:44 +0000 (08:58 -0500)
commitae97aaedb09983f9fbe27f424912f226fc54019d
treee4e212afc839a99654f365b8ea698bc0394e248b
parent2e55c0fdedd3ebf9d6ae219f5aa93edade8b3a97
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