37#if (defined(__GNUG__) || defined(__GNUC__)) || defined(__clang__)
38#define ATTRIBUTE_FORMAT_PRINTF __attribute__((format(printf, 1, 0)))
40#define ATTRIBUTE_FORMAT_PRINTF
54 std::string
stringFormat(
const char* format, ...) ATTRIBUTE_FORMAT_PRINTF;
64 struct binaryToStringHelper;
75 for (
size_t i = 0; i < binToStr.buf_.size(); ++i) {
76 int c =
static_cast<int>(binToStr.buf_.at(i));
77 const bool bTrailingNull = c == 0 && i == binToStr.buf_.size() - 1;
79 if (c <
' ' || c >= 127) {
82 stream.put(
static_cast<char>(c));
124 template <
typename T>
133 std::string
binaryToHex(
const byte *data,
size_t size);
138 std::string
indent(int32_t depth);
std::string binaryToHex(const byte *data, size_t size)
format binary for display of raw data .
Definition image_int.cpp:60
std::string indent(int32_t d)
indent output for kpsRecursive in printStructure() .
Definition image_int.cpp:106
std::string stringFormat(const char *format,...)
format a string in the pattern of sprintf .
Definition image_int.cpp:32
binaryToStringHelper< T > binaryToString(const Slice< T > sl)
format binary data for display in Image::printStructure()
Definition image_int.hpp:125
Provides classes and functions to encode and decode Exif and Iptc data. The libexiv2 API consists of ...
Definition asfvideo.hpp:36
Helper struct for binary data output via binaryToString.
Definition image_int.hpp:90
Slice (= view) for STL containers.
Definition slice.hpp:530
Type definitions for Exiv2 and related functionality.