21#ifndef LIBREVENGE_INTERNAL_H
22#define LIBREVENGE_INTERNAL_H
30#define RVNG_NUM_ELEMENTS(array) (sizeof(array) / sizeof((array)[0]))
35#define RVNG_DEBUG_MSG(M) printf M
37#define RVNG_DEBUG_MSG(M)
48 for (
const char *c = str.
cstr(); *c; ++c)
50 if (!std::strchr(
"<>{};\"'\\", *c))
58 if (offset > 0 && base > (std::numeric_limits<long>::max)() - offset)
59 return (std::numeric_limits<long>::max)();
60 if (offset < 0 && base < (std::numeric_limits<long>::min)() - offset)
61 return (std::numeric_limits<long>::min)();
Definition librevenge_internal.h:41
UTF-8 string.
Definition RVNGString.h:35
const char * cstr() const
Definition RVNGString.cpp:233
std::string toCSSValue(const librevenge::RVNGString &str)
returns the string without the characters that end or escape a CSS value or style block
Definition librevenge_internal.h:45
long saturatingAdd(long base, long offset)
Definition librevenge_internal.h:56