NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
string-helper.cpp File Reference
Include dependency graph for string-helper.cpp:

Go to the source code of this file.

Namespaces

 ndn
 Copyright (c) 2011-2015 Regents of the University of California.
 

Functions

std::ostream & ndn::operator<< (std::ostream &os, const AsHex &hex)
 
void ndn::printHex (std::ostream &os, uint64_t num, bool wantUpperCase=false)
 Output the hex representation of num to the output stream os. More...
 
void ndn::printHex (std::ostream &os, const uint8_t *buffer, size_t length, bool wantUpperCase=true)
 Output the hex representation of the bytes in buffer to the output stream os. More...
 
void ndn::printHex (std::ostream &os, const Buffer &buffer, bool wantUpperCase=true)
 Output the hex representation of the bytes in buffer to the output stream os. More...
 
std::string ndn::toHex (const uint8_t *buffer, size_t length, bool wantUpperCase=true)
 Return a string containing the hex representation of the bytes in buffer. More...
 
std::string ndn::toHex (const Buffer &buffer, bool wantUpperCase=true)
 Return a string containing the hex representation of the bytes in buffer. More...
 
int ndn::fromHexChar (char c)
 Convert the hex character to an integer from 0 to 15, or -1 if not a hex character. More...
 
shared_ptr< Buffer > ndn::fromHex (const std::string &hexString)
 Convert the hex string to buffer. More...
 
std::string ndn::unescape (const std::string &str)
 Decode a percent-encoded string. More...