23 #ifndef NLSR_NAME_HELPER_HPP
24 #define NLSR_NAME_HELPER_HPP
40 ndn::name::Component component(searchString);
41 size_t nameSize = name.size();
42 for (uint32_t i = 0; i < nameSize; i++) {
43 if (component == name[i]) {
44 return static_cast<int32_t
>(i);
int32_t getNameComponentPosition(const ndn::Name &name, const std::string &searchString)
search a name component in ndn::Name and return the position of the component