Actions
Feature #2251
closedPartial name::Component comparison
Status:
Abandoned
Priority:
Normal
Assignee:
-
Category:
Base
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
2.00 h
Description
Allow comparing a range of octets in a name::Component
The interface should contain the following methods (based on std::string::compare
)
int compare(size_type pos1, size_type count1,
const name::Component& name2) const;
int compare(size_type pos1, size_type count1,
const name::Component& name2,
size_type pos2, size_type count2 = npos) const;
Updated by Junxiao Shi over 9 years ago
@Alex needs to justify the necessity of this Feature.
Updated by Alex Afanasyev over 9 years ago
- Subject changed from Partial NameComponent comparison to Partial name::Component comparison
- Description updated (diff)
Updated by Joao Pereira almost 9 years ago
What should happen when:
- pos1 >
value_size()
? - pos1+count1 >
value_size()
? - pos1 is negative?
- pos2 >
value_size()
? - pos2+count2 >
value_size()
? - pos2 is negative?
- count1 != count2? Should fail directly?
Updated by Junxiao Shi almost 9 years ago
DO NOT WORK ON THIS FEATURE.
The necessity is not justified. See note-1.
Actions