18 #ifndef CUPT_COMMON_SEEN
19 #define CUPT_COMMON_SEEN
22 #define CUPT_API __attribute__ ((visibility("default")))
23 #define CUPT_LOCAL __attribute__ ((visibility("hidden")))
55 : std::runtime_error(message)
62 : std::runtime_error(message)
68 using std::shared_ptr;
69 using std::static_pointer_cast;
70 using std::dynamic_pointer_cast;
71 using std::unique_ptr;
81 CUPT_API
string join(
const string& joiner,
const vector< string >& parts);
82 CUPT_API
string humanReadableSizeString(uint64_t bytes);
83 CUPT_API
string globToRegexString(
const string&);
91 CUPT_API
const char*
__(
const char* message);
111 void CUPT_API
consumePackageName(
const char* begin,
const char* end,
const char*& resultEnd);
119 bool CUPT_API
checkPackageName(
const string& packageName,
bool throwOnError =
true);
125 bool CUPT_API
checkVersionString(
const string& versionString,
bool throwOnError =
true);
141 #include <cupt/format2.hpp>