Function amdinfer::util::startsWith

Function Documentation

inline bool amdinfer::util::startsWith(std::string_view str, std::string_view prefix)

Checks if a string starts with another string.

Parameters
  • str – full string

  • suffix – prefix to check

Returns

bool true if str starts with prefix