pub fn BrutalForceSearch(text: &str, pattern: &str) -> isize
Expand description

Perform brute force substring search.

§Arguments

  • text - The text to search within.
  • pattern - The pattern to search for.

§Returns

Returns the index of the first occurrence of pattern in text, or -1 if not found.