MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / trimHashHashSuffix

Function trimHashHashSuffix

source/MRViewer/MRSceneControlMenuItems.cpp:29–34  ·  view source on GitHub ↗

Remove `##` and everything after it from the string. If the string doesn't contain it, return sit unchanged.

Source from the content-addressed store, hash-verified

27// Remove `##` and everything after it from the string.
28// If the string doesn't contain it, return sit unchanged.
29static std::string trimHashHashSuffix( std::string str )
30{
31 if ( auto sep = str.find( "##" ); sep != std::string::npos )
32 str.resize( sep );
33 return str;
34}
35
36UndoMenuItem::UndoMenuItem() :
37 RibbonMenuItem( "Undo" )

Callers 3

getDynamicTooltipMethod · 0.85
updateUndoListCache_Method · 0.85
updateRedoListCache_Method · 0.85

Calls 2

findMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected