foobar2000 SDK
2015-08-03
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
foobar2000
helpers
icon_remapping_wildcard.h
Go to the documentation of this file.
1
class
icon_remapping_wildcard_impl
:
public
icon_remapping
{
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
:
12
pfc::string8
m_pattern
,
m_iconname
;
13
};
icon_remapping
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
pfc::string_base
Definition:
string_base.h:193
pfc::string8_t< pfc::alloc_standard >
wildcard_helper::test
bool test(const char *str, const char *pattern, bool b_separate_by_semicolon=false)
Definition:
wildcard.cpp:26
icon_remapping_wildcard_impl::icon_remapping_wildcard_impl
icon_remapping_wildcard_impl(const char *p_pattern, const char *p_iconname)
Definition:
icon_remapping_wildcard.h:3
icon_remapping_wildcard_impl::m_pattern
pfc::string8 m_pattern
Definition:
icon_remapping_wildcard.h:12
icon_remapping_wildcard_impl
Definition:
icon_remapping_wildcard.h:1
icon_remapping_wildcard_impl::query
bool query(const char *p_extension, pfc::string_base &p_iconname)
Definition:
icon_remapping_wildcard.h:4
icon_remapping_wildcard_impl::m_iconname
pfc::string8 m_iconname
Definition:
icon_remapping_wildcard.h:12
Generated by
1.8.11