20 #ifndef MPD_ICU_COMPARE_HXX 21 #define MPD_ICU_COMPARE_HXX 38 explicit IcuCompare(
const char *needle) noexcept;
44 operator bool() const noexcept {
49 bool operator==(
const char *haystack)
const noexcept;
52 bool IsIn(
const char *haystack)
const 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...
IcuCompare & operator=(IcuCompare &&)=default
A string pointer whose memory is managed by this class.
gcc_pure bool IsIn(const char *haystack) const noexcept