MCPcopy Create free account
hub / github.com/WinMerge/winmerge / GetFileFilterName

Method GetFileFilterName

Src/FileFilterHelper.cpp:61–69  ·  view source on GitHub ↗

* @brief Return name of filter in given file. * If no filter cannot be found, return empty string. * @param [in] filterPath Path to filterfile. * @sa FileFilterHelper::GetFileFilterPath() */

Source from the content-addressed store, hash-verified

59 * @sa FileFilterHelper::GetFileFilterPath()
60 */
61String FileFilterHelper::GetFileFilterName(const String& filterPath) const
62{
63 for (const auto& filter : GetFileFilters())
64 {
65 if (filter.fullpath == filterPath)
66 return filter.name;
67 }
68 return String();
69}
70
71/**
72 * @brief Return path to filter with given name.

Callers 1

TEST_FFunction · 0.80

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.64