Skip to content

Commit

Permalink
Update vendored DuckDB sources to 4d88718
Browse files Browse the repository at this point in the history
  • Loading branch information
duckdblabs-bot committed Jan 16, 2025
1 parent 4d88718 commit 9d02a50
Show file tree
Hide file tree
Showing 173 changed files with 990 additions and 575 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ BytesTrieBuilder::BTLinearMatchNode::BTLinearMatchNode(const char *bytes, int32_
static_cast<uint32_t>(hash)*37u + static_cast<uint32_t>(ustr_hashCharsN(bytes, len)));
}

UBool
bool
BytesTrieBuilder::BTLinearMatchNode::operator==(const Node &other) const {
if(this==&other) {
return TRUE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ DateInterval::clone() const {
}


UBool
bool
DateInterval::operator==(const DateInterval& other) const {
return ( fromDate == other.fromDate && toDate == other.toDate );
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
// }
// virtual SimpleFilteredSentenceBreakIterator* clone() const { return new SimpleFilteredSentenceBreakIterator(*this); }
// virtual UClassID getDynamicClassID(void) const { return NULL; }
// virtual UBool operator==(const BreakIterator& o) const { if(this==&o) return true; return false; }
// virtual bool operator==(const BreakIterator& o) const { if(this==&o) return true; return false; }

// /* -- text modifying -- */
// virtual void setText(UText *text, UErrorCode &status) { fDelegate->setText(text,status); }
Expand Down
2 changes: 1 addition & 1 deletion src/duckdb/extension/icu/third_party/icu/common/locid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ Locale::clone() const {
return new Locale(*this);
}

UBool
bool
Locale::operator==( const Locale& other) const
{
return (uprv_strcmp(other.fullName, fullName) == 0);
Expand Down
2 changes: 1 addition & 1 deletion src/duckdb/extension/icu/third_party/icu/common/lsr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ LSR &LSR::operator=(LSR &&other) U_NOEXCEPT {
return *this;
}

UBool LSR::operator==(const LSR &other) const {
bool LSR::operator==(const LSR &other) const {
return
uprv_strcmp(language, other.language) == 0 &&
uprv_strcmp(script, other.script) == 0 &&
Expand Down
4 changes: 2 additions & 2 deletions src/duckdb/extension/icu/third_party/icu/common/lsr.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ struct LSR final : public UMemory {
*/
static int32_t indexForRegion(const char *region);

UBool operator==(const LSR &other) const;
bool operator==(const LSR &other) const;

inline UBool operator!=(const LSR &other) const {
inline bool operator!=(const LSR &other) const {
return !operator==(other);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ MessagePattern::clear() {
numericValuesLength=0;
}

UBool
bool
MessagePattern::operator==(const MessagePattern &other) const {
if(this==&other) {
return TRUE;
Expand Down Expand Up @@ -387,7 +387,7 @@ MessagePattern::getPluralOffset(int32_t pluralStart) const {

// MessagePattern::Part ---------------------------------------------------- ***

UBool
bool
MessagePattern::Part::operator==(const Part &other) const {
if(this==&other) {
return TRUE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ int32_t Normalizer::hashCode() const
return text->hashCode() + fUMode + fOptions + buffer.hashCode() + bufferPos + currentIndex + nextIndex;
}

UBool Normalizer::operator==(const Normalizer& that) const
bool Normalizer::operator==(const Normalizer& that) const
{
return
this==&that ||
Expand Down
2 changes: 1 addition & 1 deletion src/duckdb/extension/icu/third_party/icu/common/rbbinode.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class RBBINode : public UMemory {

private:
RBBINode &operator = (const RBBINode &other); // No defs.
UBool operator == (const RBBINode &other); // Private, so these functions won't accidently be used.
bool operator == (const RBBINode &other); // Private, so these functions won't accidently be used.

#ifdef RBBI_DEBUG
public:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ StringCharacterIterator::operator=(const StringCharacterIterator& that) {
return *this;
}

UBool
bool
StringCharacterIterator::operator==(const ForwardCharacterIterator& that) const {
if (this == &that) {
return TRUE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ StringTrieBuilder::equalNodes(const void *left, const void *right) {
return *(const Node *)left==*(const Node *)right;
}

UBool
bool
StringTrieBuilder::Node::operator==(const Node &other) const {
return this==&other || (typeid(*this)==typeid(other) && hash==other.hash);
}
Expand All @@ -396,7 +396,7 @@ StringTrieBuilder::Node::markRightEdgesFirst(int32_t edgeNumber) {
return edgeNumber;
}

UBool
bool
StringTrieBuilder::FinalValueNode::operator==(const Node &other) const {
if(this==&other) {
return TRUE;
Expand All @@ -413,7 +413,7 @@ StringTrieBuilder::FinalValueNode::write(StringTrieBuilder &builder) {
offset=builder.writeValueAndFinal(value, TRUE);
}

UBool
bool
StringTrieBuilder::ValueNode::operator==(const Node &other) const {
if(this==&other) {
return TRUE;
Expand All @@ -425,7 +425,7 @@ StringTrieBuilder::ValueNode::operator==(const Node &other) const {
return hasValue==o.hasValue && (!hasValue || value==o.value);
}

UBool
bool
StringTrieBuilder::IntermediateValueNode::operator==(const Node &other) const {
if(this==&other) {
return TRUE;
Expand All @@ -451,7 +451,7 @@ StringTrieBuilder::IntermediateValueNode::write(StringTrieBuilder &builder) {
offset=builder.writeValueAndFinal(value, FALSE);
}

UBool
bool
StringTrieBuilder::LinearMatchNode::operator==(const Node &other) const {
if(this==&other) {
return TRUE;
Expand All @@ -471,7 +471,7 @@ StringTrieBuilder::LinearMatchNode::markRightEdgesFirst(int32_t edgeNumber) {
return edgeNumber;
}

UBool
bool
StringTrieBuilder::ListBranchNode::operator==(const Node &other) const {
if(this==&other) {
return TRUE;
Expand Down Expand Up @@ -550,7 +550,7 @@ StringTrieBuilder::ListBranchNode::write(StringTrieBuilder &builder) {
}
}

UBool
bool
StringTrieBuilder::SplitBranchNode::operator==(const Node &other) const {
if(this==&other) {
return TRUE;
Expand Down Expand Up @@ -584,7 +584,7 @@ StringTrieBuilder::SplitBranchNode::write(StringTrieBuilder &builder) {
offset=builder.write(unit);
}

UBool
bool
StringTrieBuilder::BranchHeadNode::operator==(const Node &other) const {
if(this==&other) {
return TRUE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ UCharsTrieBuilder::UCTLinearMatchNode::UCTLinearMatchNode(const UChar *units, in
hash=hash*37u+ustr_hashUCharsN(units, len);
}

UBool
bool
UCharsTrieBuilder::UCTLinearMatchNode::operator==(const Node &other) const {
if(this==&other) {
return TRUE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ UCharCharacterIterator::operator=(const UCharCharacterIterator& that) {
UCharCharacterIterator::~UCharCharacterIterator() {
}

UBool
bool
UCharCharacterIterator::operator==(const ForwardCharacterIterator& that) const {
if (this == &that) {
return TRUE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,15 @@
// * object, and styles are not considered.
// * @stable ICU 2.0
// */
// virtual UBool operator==(const BreakIterator&) const = 0;
// virtual bool operator==(const BreakIterator&) const = 0;

// /**
// * Returns the complement of the result of operator==
// * @param rhs The BreakIterator to be compared for inequality
// * @return the complement of the result of operator==
// * @stable ICU 2.0
// */
// UBool operator!=(const BreakIterator& rhs) const { return !operator==(rhs); }
// bool operator!=(const BreakIterator& rhs) const { return !operator==(rhs); }

// /**
// * Return a polymorphic copy of this object. This is an abstract
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class U_COMMON_API BytesTrieBuilder : public StringTrieBuilder {
class BTLinearMatchNode : public LinearMatchNode {
public:
BTLinearMatchNode(const char *units, int32_t len, Node *nextNode);
virtual UBool operator==(const Node &other) const;
virtual bool operator==(const Node &other) const;
virtual void write(StringTrieBuilder &builder);
private:
const char *s;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class U_COMMON_API ForwardCharacterIterator : public UObject {
* character in the same character-storage object
* @stable ICU 2.0
*/
virtual UBool operator==(const ForwardCharacterIterator& that) const = 0;
virtual bool operator==(const ForwardCharacterIterator& that) const = 0;

/**
* Returns true when the iterators refer to different
Expand All @@ -126,7 +126,7 @@ class U_COMMON_API ForwardCharacterIterator : public UObject {
* same text-storage object
* @stable ICU 2.0
*/
inline UBool operator!=(const ForwardCharacterIterator& that) const;
inline bool operator!=(const ForwardCharacterIterator& that) const;

/**
* Generates a hash code for this iterator.
Expand Down Expand Up @@ -692,7 +692,7 @@ class U_COMMON_API CharacterIterator : public ForwardCharacterIterator {
int32_t end;
};

inline UBool
inline bool
ForwardCharacterIterator::operator!=(const ForwardCharacterIterator& that) const {
return !operator==(that);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,14 @@ class U_COMMON_API DateInterval : public UObject {
* @return TRUE if the two DateIntervals are the same
* @stable ICU 4.0
*/
virtual UBool operator==(const DateInterval& other) const;
virtual bool operator==(const DateInterval& other) const;

/**
* Non-equality operator
* @return TRUE if the two DateIntervals are not the same
* @stable ICU 4.0
*/
inline UBool operator!=(const DateInterval& other) const;
inline bool operator!=(const DateInterval& other) const;


/**
Expand Down Expand Up @@ -151,7 +151,7 @@ DateInterval::getToDate() const {
}


inline UBool
inline bool
DateInterval::operator!=(const DateInterval& other) const {
return ( !operator==(other) );
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ class U_COMMON_API Locale : public UObject {
* @return True if the two locale keys are the same, false otherwise.
* @stable ICU 2.0
*/
UBool operator==(const Locale& other) const;
bool operator==(const Locale& other) const;

/**
* Checks if two locale keys are not the same.
Expand All @@ -339,7 +339,7 @@ class U_COMMON_API Locale : public UObject {
* otherwise.
* @stable ICU 2.0
*/
inline UBool operator!=(const Locale& other) const;
inline bool operator!=(const Locale& other) const;

/**
* Clone this object.
Expand Down Expand Up @@ -1153,7 +1153,7 @@ class U_COMMON_API Locale : public UObject {
friend void U_CALLCONV locale_available_init();
};

inline UBool
inline bool
Locale::operator!=(const Locale& other) const
{
return !operator==(other);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -526,14 +526,14 @@ class U_COMMON_API MessagePattern : public UObject {
* @return TRUE if this object is equivalent to the other one.
* @stable ICU 4.8
*/
UBool operator==(const MessagePattern &other) const;
bool operator==(const MessagePattern &other) const;

/**
* @param other another object to compare with.
* @return FALSE if this object is equivalent to the other one.
* @stable ICU 4.8
*/
inline UBool operator!=(const MessagePattern &other) const {
inline bool operator!=(const MessagePattern &other) const {
return !operator==(other);
}

Expand Down Expand Up @@ -797,14 +797,14 @@ class U_COMMON_API MessagePattern : public UObject {
* @return TRUE if this object is equivalent to the other one.
* @stable ICU 4.8
*/
UBool operator==(const Part &other) const;
bool operator==(const Part &other) const;

/**
* @param other another object to compare with.
* @return FALSE if this object is equivalent to the other one.
* @stable ICU 4.8
*/
inline UBool operator!=(const Part &other) const {
inline bool operator!=(const Part &other) const {
return !operator==(other);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ class U_COMMON_API Normalizer : public UObject {
* @return comparison result
* @deprecated ICU 56 Use Normalizer2 instead.
*/
UBool operator==(const Normalizer& that) const;
bool operator==(const Normalizer& that) const;

/**
* Returns FALSE when both iterators refer to the same character in the same
Expand All @@ -594,7 +594,7 @@ class U_COMMON_API Normalizer : public UObject {
* @return comparison result
* @deprecated ICU 56 Use Normalizer2 instead.
*/
inline UBool operator!=(const Normalizer& that) const;
inline bool operator!=(const Normalizer& that) const;

/**
* Returns a pointer to a new Normalizer that is a clone of this one.
Expand Down Expand Up @@ -777,7 +777,7 @@ class U_COMMON_API Normalizer : public UObject {
//-------------------------------------------------------------------------

#ifndef U_HIDE_DEPRECATED_API
inline UBool
inline bool
Normalizer::operator!= (const Normalizer& other) const
{ return ! operator==(other); }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@ class U_COMMON_API ParsePosition : public UObject {
* @return TRUE if the two parse positions are equal, FALSE otherwise.
* @stable ICU 2.0
*/
inline UBool operator==(const ParsePosition& that) const;
inline bool operator==(const ParsePosition& that) const;

/**
* Equality operator.
* @return TRUE if the two parse positions are not equal, FALSE otherwise.
* @stable ICU 2.0
*/
inline UBool operator!=(const ParsePosition& that) const;
inline bool operator!=(const ParsePosition& that) const;

/**
* Clone this object.
Expand Down Expand Up @@ -192,7 +192,7 @@ ParsePosition::operator=(const ParsePosition& copy)
return *this;
}

inline UBool
inline bool
ParsePosition::operator==(const ParsePosition& copy) const
{
if(index != copy.index || errorIndex != copy.errorIndex)
Expand All @@ -201,7 +201,7 @@ ParsePosition::operator==(const ParsePosition& copy) const
return TRUE;
}

inline UBool
inline bool
ParsePosition::operator!=(const ParsePosition& copy) const
{
return !operator==(copy);
Expand Down
Loading

0 comments on commit 9d02a50

Please sign in to comment.