* Checks if a string is contained in another string, while ignoring the case of the characters. * * @param str The string to search in. * @param value The string to search for. * @return True if a match was found. */
| 334 | * @return True if a match was found. |
| 335 | */ |
| 336 | bool StrContainsIgnoreCase(std::string_view str, std::string_view value) |
| 337 | { |
| 338 | CaseInsensitiveStringView ci_str{ str.data(), str.size() }; |
| 339 | CaseInsensitiveStringView ci_value{ value.data(), value.size() }; |
| 340 | return ci_str.find(ci_value) != ci_str.npos; |
| 341 | } |
| 342 | |
| 343 | /** |
| 344 | * Get the length of an UTF-8 encoded string in number of characters |
no test coverage detected