[][src]Function voca_rs::index::index_all

pub fn index_all(subject: &str, search: &str, from_index: usize) -> Vec<usize>

Returns an array of all occurrence index of search in subject or an empty array if not found. Case sensitive.

Arguments

Example

use voca_rs::*;
index::index_all("morning", "n", 0);
// => [3, 5]
index::index_all("Zażółć gęślą jaźń", "aęą", 0);
// => [1, 8, 11, 14]
index::index_all("evening", "o", 0);
// => []
use voca_rs::Voca;
"morning"._index_all("n", 0);
// => [3, 5]