mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 09:05:31 +00:00
additional str/re operators, remove encoding option from zstring
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
b2bfb1faea
commit
34cc60410f
9 changed files with 210 additions and 44 deletions
|
@ -48,7 +48,7 @@ extern "C" {
|
|||
Z3_TRY;
|
||||
LOG_Z3_mk_string(c, str);
|
||||
RESET_ERROR_CODE();
|
||||
zstring s(str, zstring::ascii);
|
||||
zstring s(str);
|
||||
app* a = mk_c(c)->sutil().str.mk_string(s);
|
||||
mk_c(c)->save_ast_trail(a);
|
||||
RETURN_Z3(of_ast(a));
|
||||
|
@ -62,7 +62,7 @@ extern "C" {
|
|||
RESET_ERROR_CODE();
|
||||
unsigned_vector chs;
|
||||
for (unsigned i = 0; i < sz; ++i) chs.push_back(str[i]);
|
||||
zstring s(sz, chs.c_ptr(), zstring::ascii);
|
||||
zstring s(sz, chs.c_ptr());
|
||||
app* a = mk_c(c)->sutil().str.mk_string(s);
|
||||
mk_c(c)->save_ast_trail(a);
|
||||
RETURN_Z3(of_ast(a));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue