Change UBool to bool for equality operators in ICU >= 70.1

Refer to:
- 633438f8da
- f6325d49ba
This commit is contained in:
Ben Ramsey 2021-10-19 23:59:11 -05:00 committed by Nikita Popov
parent 8a79668dbe
commit 81b3f95622
2 changed files with 8 additions and 0 deletions

View File

@ -75,7 +75,11 @@ CodePointBreakIterator::~CodePointBreakIterator()
clearCurrentCharIter();
}
#if U_ICU_VERSION_MAJOR_NUM >= 70
bool CodePointBreakIterator::operator==(const BreakIterator& that) const
#else
UBool CodePointBreakIterator::operator==(const BreakIterator& that) const
#endif
{
if (typeid(*this) != typeid(that)) {
return FALSE;

View File

@ -39,7 +39,11 @@ namespace PHP {
virtual ~CodePointBreakIterator();
#if U_ICU_VERSION_MAJOR_NUM >= 70
virtual bool operator==(const BreakIterator& that) const;
#else
virtual UBool operator==(const BreakIterator& that) const;
#endif
virtual CodePointBreakIterator* clone(void) const;