28 #include "ardour/utils.h"
36 transform (searchstr.begin (), searchstr.end (), searchstr.begin (), ::toupper);
43 std::list<std::string>::const_iterator aiter = std::find (
_user.begin (),
_user.end (), (*a).unique_id);
44 std::list<std::string>::const_iterator biter = std::find (
_user.begin (),
_user.end (), (*b).unique_id);
45 if (aiter !=
_user.end () && biter !=
_user.end ()) {
46 return std::distance (
_user.begin (), aiter) < std::distance (
_user.begin (), biter);
48 if (aiter !=
_user.end ()) {
51 if (biter !=
_user.end ()) {
71 return a->type < b->type;
84 uint64_t use_a, use_b;
85 bool stats_a, stats_b;
90 if (stats_a && stats_b) {
114 int64_t lru_a, lru_b;
115 uint64_t use_a, use_b;
116 bool stats_a, stats_b;
121 if (stats_a && stats_b) {
122 return use_a > use_b;
bool stats(PluginInfoPtr const &, int64_t &lru, uint64_t &use_count) const
static PluginManager & instance()
static void setup_search_string(std::string &searchstr)
int cmp_nocase_utf8(const std::string &s1, const std::string &s2)
int cmp_nocase(const std::string &s, const std::string &s2)
std::shared_ptr< PluginInfo > PluginInfoPtr
bool operator()(ARDOUR::PluginInfoPtr a, ARDOUR::PluginInfoPtr b) const
ARDOUR::PluginManager & manager
bool operator()(ARDOUR::PluginInfoPtr a, ARDOUR::PluginInfoPtr b) const
bool operator()(ARDOUR::PluginInfoPtr a, ARDOUR::PluginInfoPtr b) const
ARDOUR::PluginManager & manager
PluginUIOrderSorter(std::list< std::string > user)
std::list< std::string > _user
bool operator()(ARDOUR::PluginInfoPtr a, ARDOUR::PluginInfoPtr b) const