mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 18:01:13 +02:00
zapit/include/zapit/bouquets.h: remove CmpChannel..
This commit is contained in:
@@ -28,7 +28,8 @@ typedef ZapitChannelList::iterator zapit_list_it_t;
|
|||||||
|
|
||||||
class CZapitBouquet
|
class CZapitBouquet
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
std::string Name;
|
std::string Name;
|
||||||
bool bHidden;
|
bool bHidden;
|
||||||
bool bLocked;
|
bool bLocked;
|
||||||
@@ -124,18 +125,6 @@ class CBouquetManager
|
|||||||
* Hence we need a compare function that considers the whole unicode charset.
|
* Hence we need a compare function that considers the whole unicode charset.
|
||||||
* For instance all countless variants of the letter a have to be regarded as the same letter.
|
* For instance all countless variants of the letter a have to be regarded as the same letter.
|
||||||
*/
|
*/
|
||||||
struct CmpChannelByChName: public binary_function <const CZapitChannel * const, const CZapitChannel * const, bool>
|
|
||||||
{
|
|
||||||
static bool comparetolower(const char a, const char b)
|
|
||||||
{
|
|
||||||
return tolower(a) < tolower(b);
|
|
||||||
};
|
|
||||||
|
|
||||||
bool operator() (const CZapitChannel * const c1, const CZapitChannel * const c2)
|
|
||||||
{
|
|
||||||
return std::lexicographical_compare(c1->getName().begin(), c1->getName().end(), c2->getName().begin(), c2->getName().end(), comparetolower);
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
struct CmpBouquetByChName: public binary_function <const CZapitBouquet * const, const CZapitBouquet * const, bool>
|
struct CmpBouquetByChName: public binary_function <const CZapitBouquet * const, const CZapitBouquet * const, bool>
|
||||||
{
|
{
|
||||||
@@ -151,13 +140,4 @@ struct CmpBouquetByChName: public binary_function <const CZapitBouquet * const,
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
struct CmpChannelByChNum: public binary_function <const CZapitChannel * const, const CZapitChannel * const, bool>
|
|
||||||
{
|
|
||||||
bool operator() (const CZapitChannel * const c1, const CZapitChannel * const c2)
|
|
||||||
{
|
|
||||||
return c1->number < c2->number;
|
|
||||||
;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif /* __bouquets_h__ */
|
#endif /* __bouquets_h__ */
|
||||||
|
Reference in New Issue
Block a user