| 630 | } |
| 631 | |
| 632 | const char * FileRules::Impl::getRuleFromFilepath(const Config & config, const char * filePath, |
| 633 | size_t & ruleIndex) const |
| 634 | { |
| 635 | const auto numRules = m_rules.size(); |
| 636 | for (size_t i = 0; i < numRules; ++i) |
| 637 | { |
| 638 | if (m_rules[i]->matches(config, filePath)) |
| 639 | { |
| 640 | ruleIndex = i; |
| 641 | return m_rules[i]->getColorSpace(); |
| 642 | } |
| 643 | } |
| 644 | // Should not be reached since the default rule always matches. |
| 645 | return m_rules.back()->getColorSpace(); |
| 646 | } |
| 647 | |
| 648 | void FileRules::Impl::moveRule(size_t ruleIndex, int offset) |
| 649 | { |
nothing calls this directly
no test coverage detected