Project

General

Profile

Actions

Feature #2251

closed

Partial name::Component comparison

Added by Junxiao Shi over 9 years ago. Updated 7 months ago.

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;
Actions #1

Updated by Junxiao Shi over 9 years ago

@Alex needs to justify the necessity of this Feature.

Actions #2

Updated by Alex Afanasyev over 9 years ago

  • Subject changed from Partial NameComponent comparison to Partial name::Component comparison
  • Description updated (diff)
Actions #3

Updated by Junxiao Shi over 9 years ago

  • Target version deleted (v0.3)
Actions #4

Updated by Joao Pereira almost 9 years ago

What should happen when:

  1. pos1 > value_size()?
  2. pos1+count1 > value_size()?
  3. pos1 is negative?
  4. pos2 > value_size()?
  5. pos2+count2 > value_size()?
  6. pos2 is negative?
  7. count1 != count2? Should fail directly?
Actions #5

Updated by Junxiao Shi almost 9 years ago

DO NOT WORK ON THIS FEATURE.
The necessity is not justified. See note-1.

Actions #6

Updated by Davide Pesavento 7 months ago

  • Status changed from New to Abandoned
Actions

Also available in: Atom PDF