pub fn ends_with(subject: &str, end: &str) -> bool
Checks whether subject
ends with end
.
subject
- The string to verify.
end
- The ending string.
use voca_rs::*;
query::ends_with("say hello to my little friend", "little friend");
query::ends_with("say hello to my little friend", "little");