nlsr::util Namespace Reference

Functions

static 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 More...
 

Function Documentation

static int32_t nlsr::util::getNameComponentPosition ( const ndn::Name &  name,
const std::string &  searchString 
)
inlinestatic

search a name component in ndn::Name and return the position of the component

Parameters
namewhere to search the searchString
searchStringthe string to search in name
Returns
-1 if searchString not found else return the position starting from 0

Definition at line 44 of file name-helper.hpp.

Here is the caller graph for this function: