MCPcopy Create free account
hub / github.com/aiekick/ImGuiFileDialog / SearchForTag

Method SearchForTag

ImGuiFileDialog.cpp:1760–1769  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1758}
1759
1760bool 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
1771bool IGFD::FileInfos::SearchForExt(const std::string& vExt, const bool vIsCaseInsensitive, const size_t& vMaxLevel) const {
1772 if (!vExt.empty()) {

Callers 2

Calls 1

emptyMethod · 0.80

Tested by

no test coverage detected