-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
85a5603
commit c8d9203
Showing
18 changed files
with
74 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
From cd1447a6962496fca60a2f5e5d9cf4448575cc24 Mon Sep 17 00:00:00 2001 | ||
From: Ben Ramsey <[email protected]> | ||
Date: Tue, 19 Oct 2021 23:59:11 -0500 | ||
Subject: [PATCH] Change UBool to bool for equality operators in ICU >= 70.1 | ||
|
||
Refer to: | ||
- https://github.com/unicode-org/icu/commit/633438f8da99fee815e2c61626ea779a84567a3d | ||
- https://github.com/unicode-org/icu/commit/f6325d49ba57ec26f320b2865ce09ca47db458d9 | ||
--- | ||
ext/intl/breakiterator/codepointiterator_internal.cpp | 4 ++++ | ||
ext/intl/breakiterator/codepointiterator_internal.h | 4 ++++ | ||
2 files changed, 8 insertions(+) | ||
|
||
diff --git a/ext/intl/breakiterator/codepointiterator_internal.cpp b/ext/intl/breakiterator/codepointiterator_internal.cpp | ||
index 71ba056994d0..3982a599af38 100644 | ||
--- a/ext/intl/breakiterator/codepointiterator_internal.cpp | ||
+++ b/ext/intl/breakiterator/codepointiterator_internal.cpp | ||
@@ -73,7 +73,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; | ||
diff --git a/ext/intl/breakiterator/codepointiterator_internal.h b/ext/intl/breakiterator/codepointiterator_internal.h | ||
index 43ec79d0b776..93b903a20bb8 100644 | ||
--- a/ext/intl/breakiterator/codepointiterator_internal.h | ||
+++ b/ext/intl/breakiterator/codepointiterator_internal.h | ||
@@ -37,7 +37,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; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters