Commit dbef0e25 authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

[2052] Rename partial_compare() to just compare()

parent 6b329452
......@@ -78,12 +78,12 @@ LabelSequence::compare(const LabelSequence& other,
return (NameComparisonResult(0, 0, NameComparisonResult::NONE));
}
return (name_.partial_compare(other.name_,
first_label_,
other.first_label_,
last_label_,
other.last_label_,
case_sensitive));
return (name_.compare(other.name_,
first_label_,
other.first_label_,
last_label_,
other.last_label_,
case_sensitive));
}
void
......
......@@ -507,16 +507,16 @@ Name::toText(bool omit_final_dot) const {
NameComparisonResult
Name::compare(const Name& other) const {
return (partial_compare(other, 0, 0, labelcount_, other.labelcount_));
return (compare(other, 0, 0, labelcount_, other.labelcount_));
}
NameComparisonResult
Name::partial_compare(const Name& other,
unsigned int first_label,
unsigned int first_label_other,
unsigned int last_label,
unsigned int last_label_other,
bool case_sensitive) const {
Name::compare(const Name& other,
unsigned int first_label,
unsigned int first_label_other,
unsigned int last_label,
unsigned int last_label_other,
bool case_sensitive) const {
// Determine the relative ordering under the DNSSEC order relation of
// 'this' and 'other', and also determine the hierarchical relationship
// of the names.
......
......@@ -422,12 +422,12 @@ private:
/// \param case_sensitive If true, comparison is case-insensitive
/// \return a <code>NameComparisonResult</code> object representing the
/// comparison result.
NameComparisonResult partial_compare(const Name& other,
unsigned int first_label,
unsigned int first_label_other,
unsigned int last_label,
unsigned int last_label_other,
bool case_sensitive = false) const;
NameComparisonResult compare(const Name& other,
unsigned int first_label,
unsigned int first_label_other,
unsigned int last_label,
unsigned int last_label_other,
bool case_sensitive = false) const;
public:
/// \brief Return true iff two names are equal.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment