Expand description
Checks whether subject
includes search
starting from position
.
Arguments
subject
- The string to verify.search
- The ending string.position
- The position to start searching.
Example
use voca_rs::*;
query::includes("starship", "star", 0);
// => true
query::includes("Zażółć gęślą jaźń", "gęślą", 7);
// => true
query::includes("galaxy", "g", 1);
// => false
use voca_rs::Voca;
"starship"._includes("star", 0);
// => true