[][src]Module voca_rs::index

Returns the index of search in subject.

Functions

index_all

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

index_of

Returns the first occurrence index of search in subject or -1 if not found. Case sensitive.

last_index_of

Returns the last occurrence index of search in subject or -1 if not found. Case sensitive.

search

Returns the first index of a pattern match in subject. NOTE: Executes regular expressions only on valid UTF-8 while exposing match locations as byte indices into the search string (see case #3).