pub fn ends_with_position(
string: &str,
target: &str,
position: Option<usize>,
) -> boolExpand description
Checks if string ends with the given target string with the given position
ยงExample
use lo_::string::*;
let content = "abc";
assert_eq!(ends_with_position(content, "b", Some(2)), true);