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
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.
/// \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.