MPD: IcuCompare Class Reference

MPD 0.20.15

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 (IcuCompare &&)=default
IcuCompare & | operator= (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/3]

IcuCompare::IcuCompare | ( |  | ) |
| inline

Definition at line 36 of file Compare.hxx.

## ◆ IcuCompare() [2/3]

IcuCompare::IcuCompare | ( | const char * | needle | ) |
| explicitnoexcept

## ◆ IcuCompare() [3/3]

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 44 of file Compare.hxx.

## ◆ operator=()

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:

- lib/icu/Compare.hxx