12 #ifndef DOCWIRE_MISC_H
13 #define DOCWIRE_MISC_H
15 #include "core_export.h"
16 #include "data_source.h"
19 #include "wv2/src/ustring.h"
27 using namespace wvWare;
29 typedef std::vector<std::string> svector;
31 DOCWIRE_CORE_EXPORT std::string formatTable(std::vector<svector>& mcols);
32 DOCWIRE_CORE_EXPORT std::string formatUrl(
const std::string& mlink_url,
const std::string& mlink_text);
33 DOCWIRE_CORE_EXPORT std::string formatList(std::vector<std::string>& mlist);
34 DOCWIRE_CORE_EXPORT std::string formatNumberedList(std::vector<std::string>& mlist);
36 DOCWIRE_CORE_EXPORT std::string ustring_to_string(
const UString& s);
38 DOCWIRE_CORE_EXPORT UString utf8_to_ustring(
const std::string& src);
40 DOCWIRE_CORE_EXPORT std::string unichar_to_utf8(
unsigned int unichar);
61 return (ch & 0xFC00) == 0xD800;
64 DOCWIRE_CORE_EXPORT
bool is_encrypted_with_ms_offcrypto(
const data_source& data);
66 DOCWIRE_CORE_EXPORT tm *thread_safe_gmtime (
const time_t *timer,
struct tm &time_buffer);
The main namespace for the DocWire SDK.
bool utf16_unichar_has_4_bytes(unsigned int ch)