#include "ndn-cxx/encoding/buffer.hpp"
#include "ndn-cxx/util/span.hpp"
#include <ostream>
#include <stdexcept>
#include <string>
#include <string_view>
Go to the source code of this file.
|
void | ndn::escape (std::ostream &os, std::string_view str) |
|
std::string | ndn::escape (std::string_view str) |
| Percent-encode a string. More...
|
|
shared_ptr< Buffer > | ndn::fromHex (std::string_view hexString) |
| Convert a hex string to a raw byte buffer. More...
|
|
constexpr int | ndn::fromHexChar (char c) noexcept |
| Convert the hex character c to an integer in [0, 15], or -1 if it's not a hex character. 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...
|
|
constexpr char | ndn::toHexChar (unsigned int n, bool wantUpperCase=true) noexcept |
| Convert (the least significant nibble of) n to the corresponding hex character. More...
|
|
void | ndn::unescape (std::ostream &os, std::string_view str) |
|
std::string | ndn::unescape (std::string_view str) |
| Decode a percent-encoded string. More...
|
|