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

Method match

src/IECore/PathMatcher.cpp:226–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224}
225
226unsigned PathMatcher::match( const std::string &path ) const
227{
228 if( path.empty() )
229 {
230 return NoMatch;
231 }
232 std::vector<IECore::InternedString> tokenizedPath;
233 StringAlgo::tokenize( path, '/', tokenizedPath );
234 return match( tokenizedPath );
235}
236
237unsigned PathMatcher::match( const std::vector<IECore::InternedString> &path ) const
238{

Callers 15

testMatchMethod · 0.95
testLookupScalingMethod · 0.95
testWildcardsMethod · 0.95
testRepeatedWildcardsMethod · 0.95
testEllipsisMethod · 0.95
testAddAndRemovePathsMethod · 0.95

Calls 4

matchFunction · 0.85
getMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 15

testMatchMethod · 0.76
testLookupScalingMethod · 0.76
testWildcardsMethod · 0.76
testRepeatedWildcardsMethod · 0.76
testEllipsisMethod · 0.76
testAddAndRemovePathsMethod · 0.76