MPD  0.20.18
Public Member Functions
IcuCompare Class Reference

This class can compare one string ("needle") with lots of other strings ("haystacks") efficiently, ignoring case. More...

#include <Compare.hxx>

Public Member Functions

 IcuCompare ()
 
 IcuCompare (const char *needle) noexcept
 
 IcuCompare (const IcuCompare &src) noexcept
 
IcuCompareoperator= (const IcuCompare &src) noexcept
 
 IcuCompare (IcuCompare &&)=default
 
IcuCompareoperator= (IcuCompare &&)=default
 
gcc_pure operator bool () const noexcept
 
gcc_pure bool operator== (const char *haystack) const noexcept
 
gcc_pure bool IsIn (const char *haystack) const noexcept
 

Detailed Description

This class can compare one string ("needle") with lots of other strings ("haystacks") efficiently, ignoring case.

With some configurations, it can prepare a case-folded version of the needle.

Definition at line 32 of file Compare.hxx.

Constructor & Destructor Documentation

◆ IcuCompare() [1/4]

IcuCompare::IcuCompare ( )
inline

Definition at line 36 of file Compare.hxx.

◆ IcuCompare() [2/4]

IcuCompare::IcuCompare ( const char *  needle)
explicitnoexcept

◆ IcuCompare() [3/4]

IcuCompare::IcuCompare ( const IcuCompare src)
inlinenoexcept

Definition at line 40 of file Compare.hxx.

◆ IcuCompare() [4/4]

IcuCompare::IcuCompare ( IcuCompare &&  )
default

Member Function Documentation

◆ IsIn()

gcc_pure bool IcuCompare::IsIn ( const char *  haystack) const
noexcept

◆ operator bool()

gcc_pure IcuCompare::operator bool ( ) const
inlinenoexcept

Definition at line 56 of file Compare.hxx.

◆ operator=() [1/2]

IcuCompare& IcuCompare::operator= ( const IcuCompare src)
inlinenoexcept

Definition at line 45 of file Compare.hxx.

◆ operator=() [2/2]

IcuCompare& IcuCompare::operator= ( IcuCompare &&  )
default

◆ operator==()

gcc_pure bool IcuCompare::operator== ( const char *  haystack) const
noexcept

The documentation for this class was generated from the following file: