X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2Fhexdump.hh;h=f43f5055467c1e7f79a7b9eb7e96aa6182f2e10b;hb=164fe477094d42463722584e527a02379ab5d985;hp=4cd50628949712d3c1aaccfc459231cc1ce785a8;hpb=0734de7b0f8616d5f2454289d1c686ba1d2c625b;p=senf.git diff --git a/Utils/hexdump.hh b/Utils/hexdump.hh index 4cd5062..f43f505 100644 --- a/Utils/hexdump.hh +++ b/Utils/hexdump.hh @@ -23,8 +23,8 @@ /** \file \brief public header for hexdump */ -#ifndef HH_hexdump_ -#define HH_hexdump_ 1 +#ifndef HH_SENF_Utils_hexdump_ +#define HH_SENF_Utils_hexdump_ 1 // Custom includes #include @@ -34,10 +34,13 @@ namespace senf { - /** \brief Write range [ i, i_end ) to output stream in hexadecimal format - */ + /** \brief Write range [ i, i_end ) to output stream in hexadecimal format */ template void hexdump(Iterator i, Iterator i_end, std::ostream & stream, unsigned block_size=16); + + /** \brief Return quoted iterator range */ + template + std::string hexdumpQuote(Iterator i, Iterator i_end); } ///////////////////////////////hh.e////////////////////////////////////////