20 #ifndef MPD_ICU_COMPARE_HXX 21 #define MPD_ICU_COMPARE_HXX 38 explicit IcuCompare(
const char *needle) noexcept;
56 operator bool() const noexcept {
61 bool operator==(
const char *haystack)
const noexcept;
64 bool IsIn(
const char *haystack)
const noexcept;
IcuCompare & operator=(const IcuCompare &src) noexcept
constexpr bool IsNull() const
gcc_pure bool operator==(const char *haystack) const noexcept
This class can compare one string ("needle") with lots of other strings ("haystacks") efficiently...
static AllocatedString Duplicate(const_pointer_type src)
A string pointer whose memory is managed by this class.
IcuCompare(const IcuCompare &src) noexcept
gcc_pure bool IsIn(const char *haystack) const noexcept