Function TRAP::Utils::String::GetCount#

Function Documentation#

constexpr i64 TRAP::Utils::String::GetCount(std::string_view str, char delimiter)#

Count the occurrences of the given delimiter in a string.

Parameters:
  • str – String to count occurrences.

  • delimiter – Delimiter to find.

Returns:

Number of occurrences of the delimiter inside the given string.