string-helper.cpp File Reference
+ Include dependency graph for string-helper.cpp:

Go to the source code of this file.

Namespaces

 ndn
 

Functions

std::string ndn::escape (const std::string &str)
 Percent-encode a string. More...
 
void ndn::escape (std::ostream &os, const char *str, size_t len)
 
shared_ptr< Buffer > ndn::fromHex (const std::string &hexString)
 Convert the hex string to buffer. More...
 
void ndn::printHex (std::ostream &os, span< const uint8_t > buffer, bool wantUpperCase=true)
 Output the hex representation of the bytes in buffer to the output stream os. More...
 
void ndn::printHex (std::ostream &os, uint64_t num, bool wantUpperCase=false)
 Output the hex representation of num to the output stream os. More...
 
std::string ndn::toHex (span< const uint8_t > buffer, bool wantUpperCase=true)
 Return a string containing the hex representation of the bytes in buffer. More...
 
std::string ndn::unescape (const std::string &str)
 Decode a percent-encoded string. More...
 
void ndn::unescape (std::ostream &os, const char *str, size_t len)