| 474 | } |
| 475 | |
| 476 | PathMatcher PathMatcher::subTree( const std::string &root ) const |
| 477 | { |
| 478 | if( root.empty() ) |
| 479 | { |
| 480 | return PathMatcher(); |
| 481 | } |
| 482 | std::vector<IECore::InternedString> tokenizedRoot; |
| 483 | StringAlgo::tokenize( root, '/', tokenizedRoot ); |
| 484 | return subTree( tokenizedRoot ); |
| 485 | } |
| 486 | |
| 487 | PathMatcher PathMatcher::subTree( const std::vector<IECore::InternedString> &root ) const |
| 488 | { |