summarylogtreecommitdiffstats
path: root/icu.patch
blob: cc652ff1ef0470ace9dc91c6c96659ff33f53eb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- a/ext/intl/breakiterator/codepointiterator_internal.cpp
+++ b/ext/intl/breakiterator/codepointiterator_internal.cpp
@@ -75,7 +75,11 @@ CodePointBreakIterator::~CodePointBreakI
    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;
--- a/ext/intl/breakiterator/codepointiterator_internal.h
+++ b/ext/intl/breakiterator/codepointiterator_internal.h
@@ -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;