NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
utilities.hpp File Reference
#include <websocketpp/common/stdint.hpp>
#include <algorithm>
#include <string>
#include <locale>
#include <websocketpp/impl/utilities_impl.hpp>
Include dependency graph for utilities.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  websocketpp::utility::my_equal< charT >
 Helper functor for case insensitive find. More...
 
struct  websocketpp::utility::ci_less
 Helper less than functor for case insensitive find. More...
 
struct  websocketpp::utility::ci_less::nocase_compare
 

Namespaces

 websocketpp
 Namespace for the WebSocket++ project.
 
 websocketpp::utility
 Generic non-websocket specific utility functions and data structures.
 

Functions

template<typename T >
T::const_iterator websocketpp::utility::ci_find_substr (T const &haystack, T const &needle, std::locale const &loc=std::locale())
 Find substring (case insensitive) More...
 
template<typename T >
T::const_iterator websocketpp::utility::ci_find_substr (T const &haystack, typename T::value_type const *needle, typename T::size_type size, std::locale const &loc=std::locale())
 Find substring (case insensitive) More...
 
std::string websocketpp::utility::to_lower (std::string const &in)
 Convert a string to lowercase. More...
 
std::string websocketpp::utility::string_replace_all (std::string subject, std::string const &search, std::string const &replace)
 Replace all occurrances of a substring with another. More...
 
std::string websocketpp::utility::to_hex (std::string const &input)
 Convert std::string to ascii printed string of hex digits. More...
 
std::string websocketpp::utility::to_hex (uint8_t const *input, size_t length)
 Convert byte array (uint8_t) to ascii printed string of hex digits. More...
 
std::string websocketpp::utility::to_hex (char const *input, size_t length)
 Convert char array to ascii printed string of hex digits. More...