Feature #1962
Updated by Junxiao Shi over 9 years ago
`Name::get` Name.get already supports a Python-style negative index so that `name.get(-3)` name.get(-3) gets the third component 3 from the back. `getSubName` https://github.com/named-data/ndn-cxx/blob/15f67314b9769ddaaf5e351ca3516669ca74f203/src/name.hpp#L408 So, should getSubName also support a negative index for the first argument, so that you can say `name.getSubName(-3, 2)`, it returns name.getSubName(-3, 2) to get two components starting third 3 from the back. back? https://github.com/named-data/ndn-cxx/blob/15f67314b9769ddaaf5e351ca3516669ca74f203/src/name.hpp#L229