Skip to content

Commit

Permalink
Add high-level binding for string length (#318)
Browse files Browse the repository at this point in the history
Signed-off-by: Yage Hu <[email protected]>
  • Loading branch information
yagehu authored Oct 18, 2024
1 parent 7b00b99 commit da43f0c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions z3/src/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1177,6 +1177,11 @@ impl<'ctx> String<'ctx> {
concat(Z3_mk_seq_concat, String<'ctx>);
}

unop! {
/// Gets the length of `Self`.
length(Z3_mk_seq_length, Int<'ctx>);
}

binop! {
/// Checks whether `Self` contains a substring
contains(Z3_mk_seq_contains, Bool<'ctx>);
Expand Down

0 comments on commit da43f0c

Please sign in to comment.