diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-11-09 14:44:11 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-11-09 14:44:11 +0100 |
commit | 975735c02751d9409c4a4757e7b70d217f0f54fe (patch) | |
tree | 25aec98e0a613e742aa1d5c5460f9ba3dd88da0b /ext/intl/breakiterator/codepointiterator_internal.cpp | |
parent | 4cd393453adbb0ec09e7064c572634e739aa2956 (diff) | |
download | php-git-975735c02751d9409c4a4757e7b70d217f0f54fe.tar.gz |
Use true/false instead of TRUE/FALSE in intl
And drop the U_DEFINE_TRUE_AND_FALSE flag.
Diffstat (limited to 'ext/intl/breakiterator/codepointiterator_internal.cpp')
-rw-r--r-- | ext/intl/breakiterator/codepointiterator_internal.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/intl/breakiterator/codepointiterator_internal.cpp b/ext/intl/breakiterator/codepointiterator_internal.cpp index 082c02d8b2..754e0b01d6 100644 --- a/ext/intl/breakiterator/codepointiterator_internal.cpp +++ b/ext/intl/breakiterator/codepointiterator_internal.cpp @@ -56,7 +56,7 @@ CodePointBreakIterator& CodePointBreakIterator::operator=(const CodePointBreakIt return *this; } - this->fText = utext_clone(this->fText, that.fText, FALSE, TRUE, &uec); + this->fText = utext_clone(this->fText, that.fText, false, true, &uec); //don't bother copying the character iterator, getText() is deprecated clearCurrentCharIter(); @@ -76,17 +76,17 @@ CodePointBreakIterator::~CodePointBreakIterator() UBool CodePointBreakIterator::operator==(const BreakIterator& that) const { if (typeid(*this) != typeid(that)) { - return FALSE; + return false; } const CodePointBreakIterator& that2 = static_cast<const CodePointBreakIterator&>(that); if (!utext_equals(this->fText, that2.fText)) { - return FALSE; + return false; } - return TRUE; + return true; } CodePointBreakIterator* CodePointBreakIterator::clone(void) const @@ -107,7 +107,7 @@ CharacterIterator& CodePointBreakIterator::getText(void) const UText *CodePointBreakIterator::getUText(UText *fillIn, UErrorCode &status) const { - return utext_clone(fillIn, this->fText, FALSE, TRUE, &status); + return utext_clone(fillIn, this->fText, false, true, &status); } void CodePointBreakIterator::setText(const UnicodeString &text) @@ -126,7 +126,7 @@ void CodePointBreakIterator::setText(UText *text, UErrorCode &status) return; } - this->fText = utext_clone(this->fText, text, FALSE, TRUE, &status); + this->fText = utext_clone(this->fText, text, false, true, &status); clearCurrentCharIter(); } @@ -278,7 +278,7 @@ CodePointBreakIterator &CodePointBreakIterator::refreshInputText(UText *input, U } int64_t pos = utext_getNativeIndex(this->fText); - this->fText = utext_clone(this->fText, input, FALSE, TRUE, &status); + this->fText = utext_clone(this->fText, input, false, true, &status); if (U_FAILURE(status)) { return *this; } |