Function liberate::string::ifind

Function Documentation

ssize_t liberate::string::ifind(std::string const &haystack, std::string const &needle)

Perform case-insensitive search.

Parameters
  • haystack[in] The haystack to find a string in.

  • needle[in] The needle to find.

Returns

-1 if the needle was not found. Otherwise the position in the string where the needle was encountered.