| 1758 | } |
| 1759 | |
| 1760 | bool IGFD::FileInfos::SearchForTag(const std::string& vTag) const { |
| 1761 | if (!vTag.empty()) { |
| 1762 | if (fileNameExt_optimized == "..") return true; |
| 1763 | return fileNameExt_optimized.find(vTag) != std::string::npos || // first try without case and accents |
| 1764 | fileNameExt.find(vTag) != std::string::npos; // second if searched with case and accents |
| 1765 | } |
| 1766 | |
| 1767 | // if tag is empty => its a special case but all is found |
| 1768 | return true; |
| 1769 | } |
| 1770 | |
| 1771 | bool IGFD::FileInfos::SearchForExt(const std::string& vExt, const bool vIsCaseInsensitive, const size_t& vMaxLevel) const { |
| 1772 | if (!vExt.empty()) { |
no test coverage detected