Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
dbef0e25
Commit
dbef0e25
authored
Jul 02, 2012
by
Mukund Sivaraman
Browse files
[2052] Rename partial_compare() to just compare()
parent
6b329452
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/lib/dns/labelsequence.cc
View file @
dbef0e25
...
...
@@ -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
...
...
src/lib/dns/name.cc
View file @
dbef0e25
...
...
@@ -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.
...
...
src/lib/dns/name.h
View file @
dbef0e25
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment