include/vk_value_serialization.hpp
std::string_view stripVendor(std::string_view view) {
  for (auto const &it : vendors) {
    // Don't strip if it's all that's left
    if (view == it)
      break;

    if (strncmp(view.data() + view.size() - it.size(), it.data(), it.size()) == 0) {
      view = view.substr(0, view.size() - it.size());
      break;
    }
  }

  return view;
}
/**
 * @brief Removes a vendor tag from the end of the given string view
 * @param view String view to remove the vendor tag from
 * @return A string_view without the vendor tag, if it was suffixed
 */
@brief Removes a vendor tag from the end of the given string view
@param view String view to remove the vendor tag from
@return A string_view without the vendor tag, if it was suffixed
@brief Removes a vendor tag from the end of the given string view @param view String view to remove the vendor tag from @return A string_view without the vendor tag if it was suffixed
std::string_view stripVendor(std::string_view view) {
  for (auto const &it : vendors) {
    if (view == it)
      break;
    if (strncmp(view.data() + view.size() - it.size(), it.data(), it.size()) == 0) {
      view = view.substr(0, view.size() - it.size());
      break;
    }
  }
  return view;
}
std :: string_view stripVendor ( std :: string_view view ) { for ( auto const & it : vendors ) { if ( view == it ) break ; if ( strncmp ( view . data ( ) + view . size ( ) - it . size ( ) , it . data ( ) , it . size ( ) ) == 0 ) { view = view . substr ( 0 , view . size ( ) - it . size ( ) ) ; break ; } } return view ; }
@brief Removes a vendor tag from the end of the given string view
 @param view String view to remove the vendor tag from
 @return A string_view without the vendor tag, if it was suffixed
@brief Removes a vendor tag from the end of the given string view @param view String view to remove the vendor tag from @return A string_view without the vendor tag if it was suffixed
// Don't strip if it's all that's left