ndn-cxx: NDN C++ Library 0.9.0-33-g832ea91d
Loading...
Searching...
No Matches
string-helper.cpp File Reference
+ Include dependency graph for string-helper.cpp:

Go to the source code of this file.

Namespaces

namespace  ndn
 

Functions

void ndn::escape (std::ostream &os, std::string_view str)
 
std::string ndn::escape (std::string_view str)
 Percent-encode a string.
 
shared_ptr< Bufferndn::fromHex (std::string_view hexString)
 Convert a hex string to a raw byte buffer.
 
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.
 
void ndn::printHex (std::ostream &os, uint64_t num, bool wantUpperCase=false)
 Output the hex representation of num to the output stream os.
 
std::string ndn::toHex (span< const uint8_t > buffer, bool wantUpperCase=true)
 Return a string containing the hex representation of the bytes in buffer.
 
void ndn::unescape (std::ostream &os, std::string_view str)
 
std::string ndn::unescape (std::string_view str)
 Decode a percent-encoded string.