Convert sequence of integral types into a sequence of hexadecimal characters and back. More...
#include <iterator>
#include <stdexcept>
#include <boost/range/begin.hpp>
#include <boost/range/end.hpp>
#include <boost/exception/all.hpp>
#include <boost/utility/enable_if.hpp>
#include <boost/type_traits/is_integral.hpp>
Classes | |
struct | boost::algorithm::hex_decode_error |
Base exception class for all hex decoding errors. More... | |
struct | boost::algorithm::not_enough_input |
Thrown when the input sequence unexpectedly ends. More... | |
struct | boost::algorithm::non_hex_input |
Thrown when a non-hex value (0-9, A-F) encountered when decoding. More... | |
Namespaces | |
boost | |
Duration formatting facet for input. | |
boost::algorithm | |
boost::algorithm::detail | |
Typedefs | |
typedef boost::error_info < struct bad_char_, char > | boost::algorithm::bad_char |
Functions | |
template<typename InputIterator , typename OutputIterator > | |
boost::enable_if < boost::is_integral< typename detail::hex_iterator_traits < InputIterator >::value_type > , OutputIterator >::type | boost::algorithm::hex (InputIterator first, InputIterator last, OutputIterator out) |
Converts a sequence of integral types into a hexadecimal sequence of characters. More... | |
template<typename T , typename OutputIterator > | |
boost::enable_if < boost::is_integral< T > , OutputIterator >::type | boost::algorithm::hex (const T *ptr, OutputIterator out) |
Converts a sequence of integral types into a hexadecimal sequence of characters. More... | |
template<typename Range , typename OutputIterator > | |
boost::enable_if < boost::is_integral< typename detail::hex_iterator_traits < typename Range::iterator > ::value_type >, OutputIterator > ::type | boost::algorithm::hex (const Range &r, OutputIterator out) |
Converts a sequence of integral types into a hexadecimal sequence of characters. More... | |
template<typename InputIterator , typename OutputIterator > | |
OutputIterator | boost::algorithm::unhex (InputIterator first, InputIterator last, OutputIterator out) |
Converts a sequence of hexadecimal characters into a sequence of integers. More... | |
template<typename T , typename OutputIterator > | |
OutputIterator | boost::algorithm::unhex (const T *ptr, OutputIterator out) |
Converts a sequence of hexadecimal characters into a sequence of integers. More... | |
template<typename Range , typename OutputIterator > | |
OutputIterator | boost::algorithm::unhex (const Range &r, OutputIterator out) |
Converts a sequence of hexadecimal characters into a sequence of integers. More... | |
template<typename String > | |
String | boost::algorithm::hex (const String &input) |
Converts a sequence of integral types into a hexadecimal sequence of characters. More... | |
template<typename String > | |
String | boost::algorithm::unhex (const String &input) |
Converts a sequence of hexadecimal characters into a sequence of characters. More... | |
Convert sequence of integral types into a sequence of hexadecimal characters and back.
Based on the MySQL functions HEX and UNHEX