15 #ifndef DETECTORGRAPH_PLATFORM_STANDALONE_NODENAMEUTILS_HPP_ 16 #define DETECTORGRAPH_PLATFORM_STANDALONE_NODENAMEUTILS_HPP_ 23 namespace NodeNameUtils
64 std::string
RemoveSubstrings(
const std::string& aInStr,
const char* elimStrings[]);
72 std::string
WrapOnSubStrings(
const std::string& aInStr,
const char* wrapStrings[]);
78 #endif // DETECTORGRAPH_PLATFORM_STANDALONE_NODENAMEUTILS_HPP_ std::string GetDemangledName(const std::string &aMangledString)
Provides utilities for manipulating DetectorGraph node names.
std::string WrapOnCommonEndings(const std::string &aNodeName)
Adds a \n to the input name before common suffixes.
std::string WrapOnSubStrings(const std::string &aInStr, const char *wrapStrings[])
Adds a \n to aInStr before each sub-string in wrapStrings.
std::string RemoveSubstrings(const std::string &aInStr, const char *elimStrings[])
Removes all elimStrings from aInStr and returns new string.
std::string GetMinimalName(const std::string &aMangledString)
Returns a readable name with redundant prefixes/suffixes removed.