MCPcopy Create free account
hub / github.com/carbonengine/trinity / StringRemove

Function StringRemove

trinity/Utilities/StringUtils.h:65–75  ·  view source on GitHub ↗

-------------------------------------------------------------------------------- Description: Remove a subpart from a string --------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

63// Remove a subpart from a string
64// --------------------------------------------------------------------------------
65inline bool StringRemove( std::string& baseString, const char* remove )
66{
67 // find what to remove
68 size_t removeStart = baseString.find( remove );
69 if( removeStart != std::string::npos )
70 {
71 baseString.erase( removeStart, strlen( remove ) );
72 return true;
73 }
74 return false;
75}
76
77// --------------------------------------------------------------------------------
78// Description:

Callers 1

LoadOverlayMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected