Function _resolve_prefix

Function Documentation

std::string _resolve_prefix(const std::string &name, const std::string &prefix)

Returns name stripped of prefix if exists, if not return “”.

Parameters:
  • name[in] string that will be stripped from prefix

  • prefix[in] prefix to be stripped

Returns:

name stripped of prefix, or

Returns:

“” if name doesn’t start with prefix