MCPcopy Create free account
hub / github.com/ImageEngine/cortex / removePath

Method removePath

src/IECore/PathMatcher.cpp:376–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

374}
375
376bool PathMatcher::removePath( const std::string &path )
377{
378 if( path.empty() )
379 {
380 return false;
381 }
382 std::vector<IECore::InternedString> tokenizedPath;
383 StringAlgo::tokenize( path, '/', tokenizedPath );
384 return removePath( tokenizedPath );
385}
386
387bool PathMatcher::removePath( const std::vector<IECore::InternedString> &path )
388{

Callers 11

testAddAndRemovePathsMethod · 0.95
testRemoveEllipsisMethod · 0.95
testPathsMethod · 0.95
testIsEmptyMethod · 0.95
testCopyAndRemovePathMethod · 0.95
testHashMethod · 0.80

Calls 3

getMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 11

testAddAndRemovePathsMethod · 0.76
testRemoveEllipsisMethod · 0.76
testPathsMethod · 0.76
testIsEmptyMethod · 0.76
testCopyAndRemovePathMethod · 0.76
testHashMethod · 0.64