Function TRAP::Utils::String::Contains(std::string_view, std::string_view)#

Function Documentation#

constexpr bool TRAP::Utils::String::Contains(std::string_view str, std::string_view substr) noexcept#

Checks if the string contains the given substring.

Deprecated:

This function is deprecated when compiling with C++23 standard.

Parameters:
  • str – String to check.

  • substr – Substring to check if inside string.

Returns:

True if the string contains the provided substring, false otherwise.