[][src]Function voca_rs::query::includes

pub fn includes(subject: &str, search: &str, position: usize) -> bool

Checks whether subject includes search starting from position.

Arguments

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