[−][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
subject
- The string where to search.search
- The string to search.from_index
- The index to start searching
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]