All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
string-helper.hpp File Reference
#include <string>
#include <sstream>
Include dependency graph for string-helper.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 ndn
 Copyright (C) 2013 Regents of the University of California.
 

Functions

std::string ndn::toHex (const uint8_t *array, size_t arraySize)
 Return the hex representation of the bytes in array. More...
 
void ndn::trimLeft (std::string &str)
 Modify str in place to erase whitespace on the left. More...
 
void ndn::trimRight (std::string &str)
 Modify str in place to erase whitespace on the right. More...
 
void ndn::trim (std::string &str)
 Modify str in place to erase whitespace on the left and right. More...
 
int ndn::fromHexChar (uint8_t c)
 Convert the hex character to an integer from 0 to 15, or -1 if not a hex character. More...
 
std::string ndn::unescape (const std::string &str)
 Return a copy of str, converting each escaped "%XX" to the char value. More...
 

Variables

static const char * ndn::WHITESPACE_CHARS = " \n\r\t"