|
WebSocket++ 0.8.3-dev
C++ websocket client/server library
|
Generic non-websocket specific utility functions and data structures. More...
Classes | |
| struct | my_equal |
| Helper functor for case insensitive find. More... | |
| struct | ci_less |
| Helper less than functor for case insensitive find. More... | |
Functions | |
| template<typename T> | |
| T::const_iterator | ci_find_substr (T const &haystack, T const &needle, std::locale const &loc=std::locale()) |
| Find substring (case insensitive). | |
| template<typename T> | |
| T::const_iterator | 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). | |
| std::string | string_replace_all (std::string subject, std::string const &search, std::string const &replace) |
| Replace all occurrances of a substring with another. | |
| std::string | to_hex (std::string const &input) |
| Convert std::string to ascii printed string of hex digits. | |
| std::string | to_hex (uint8_t const *input, size_t length) |
| Convert byte array (uint8_t) to ascii printed string of hex digits. | |
| std::string | to_hex (char const *input, size_t length) |
| Convert char array to ascii printed string of hex digits. | |
Generic non-websocket specific utility functions and data structures.
| T::const_iterator websocketpp::utility::ci_find_substr | ( | T const & | haystack, |
| T const & | needle, | ||
| std::locale const & | loc = std::locale() ) |
Find substring (case insensitive).
| [in] | haystack | The string to search in |
| [in] | needle | The string to search for |
| [in] | loc | The locale to use for determining the case of values. Defaults to the current locale. |
Definition at line 101 of file utilities.hpp.
| 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).
| [in] | haystack | The string to search in |
| [in] | needle | The string to search for as a char array of values |
| [in] | size | Length of needle |
| [in] | loc | The locale to use for determining the case of values. Defaults to the current locale. |
Definition at line 123 of file utilities.hpp.
|
inline |
Replace all occurrances of a substring with another.
| [in] | subject | The string to search in |
| [in] | search | The string to search for |
| [in] | replace | The string to replace with |
Definition at line 59 of file utilities_impl.hpp.
|
inline |
Convert char array to ascii printed string of hex digits.
| [in] | input | The char array to print |
| [in] | length | The length of input |
Definition at line 55 of file utilities_impl.hpp.
|
inline |
Convert std::string to ascii printed string of hex digits.
| [in] | input | The string to print |
Definition at line 37 of file utilities_impl.hpp.
|
inline |
Convert byte array (uint8_t) to ascii printed string of hex digits.
| [in] | input | The byte array to print |
| [in] | length | The length of input |
Definition at line 41 of file utilities_impl.hpp.