[Core] Upgrade FreeSWITCH to use PCRE2 library. Be aware of breaking changes.

This commit is contained in:
Andrey Volk
2025-07-08 21:11:25 +03:00
parent b2f5b66444
commit 65bc7c14bf
40 changed files with 285 additions and 201 deletions
+17
View File
@@ -53,6 +53,23 @@ FST_CORE_BEGIN("./conf")
}
FST_TEARDOWN_END()
FST_TEST_BEGIN(test_switch_regex)
{
switch_regex_match_t *match_data = NULL;
switch_regex_t *re = NULL;
char buf[100] = { 0 };
size_t size = sizeof(buf);
switch_regex_perform("1234", "^[0-9]+$", &re, &match_data);
switch_regex_copy_substring(match_data, 0, buf, &size);
switch_regex_match_free(match_data);
switch_regex_free(re);
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "\n%s\n", buf);
fst_check_string_equals(buf, "1234");
}
FST_TEST_END()
FST_TEST_BEGIN(test_fctstr_safe_cpy)
{
char *dst;