mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
Change UBool to bool for equality operators in ICU >= 70.1
Refer to: -633438f8da
-f6325d49ba
This commit is contained in:
parent
8a79668dbe
commit
81b3f95622
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user