mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Geolocation: Base Asterisk Prereqs
* Added ast_variable_list_from_quoted_string() Parse a quoted string into an ast_variable list. * Added ast_str_substitute_variables_full2() Perform variable/function/expression substitution on an ast_str. * Added ast_strsep_quoted() Like ast_strsep except you can specify a specific quote character. Also added unit test. * Added ast_xml_find_child_element() Find a direct child element by name. * Added ast_xml_doc_dump_memory() Dump the specified document to a buffer * ast_datastore_free() now checks for a NULL datastore before attempting to destroy it. Change-Id: I5dcefed2f5f93a109e8b489e18d80d42e45244ec
This commit is contained in:
committed by
Friendly Automation
parent
740c773781
commit
5fe9887701
@@ -1952,7 +1952,7 @@ AST_TEST_DEFINE(variable_list_from_string)
|
||||
|
||||
switch (cmd) {
|
||||
case TEST_INIT:
|
||||
info->name = "variable_list_from_string";
|
||||
info->name = "variable_list_from_quoted_string";
|
||||
info->category = "/main/config/";
|
||||
info->summary = "Test parsing a string into a variable list";
|
||||
info->description = info->summary;
|
||||
@@ -1962,7 +1962,7 @@ AST_TEST_DEFINE(variable_list_from_string)
|
||||
}
|
||||
|
||||
parse_string = "abc = 'def', ghi = 'j,kl', mno='pq=r', stu = 'vwx=\"yz\", ABC = \"DEF\"'";
|
||||
list = ast_variable_list_from_string(parse_string, ",", "=");
|
||||
list = ast_variable_list_from_quoted_string(parse_string, ",", "=", "'");
|
||||
ast_test_validate(test, list != NULL);
|
||||
str = ast_variable_list_join(list, "|", "^", "@", NULL);
|
||||
|
||||
|
Reference in New Issue
Block a user