foobar2000 SDK  2015-08-03
icon_remapping_wildcard.h
Go to the documentation of this file.
2 public:
3  icon_remapping_wildcard_impl(const char * p_pattern,const char * p_iconname) : m_pattern(p_pattern), m_iconname(p_iconname) {}
4  bool query(const char * p_extension,pfc::string_base & p_iconname) {
5  if (wildcard_helper::test(p_extension,m_pattern,true)) {
6  p_iconname = m_iconname; return true;
7  } else {
8  return false;
9  }
10  }
11 private:
13 };
New in 0.9.5; allows your file format to use another icon than <extension>.ico when registering the f...
Definition: icon_remap.h:3
bool test(const char *str, const char *pattern, bool b_separate_by_semicolon=false)
Definition: wildcard.cpp:26
icon_remapping_wildcard_impl(const char *p_pattern, const char *p_iconname)
bool query(const char *p_extension, pfc::string_base &p_iconname)