vector<string>
get_all_suffixes(int i, bool all = true, bool classic = false)
{
- auto _ = [classic](const char* msg) { return classic ? msg : ::_(msg); };
+ auto _ = [classic](const char* msg) { return classic ? msg : snapper::_(msg); };
vector<string> ret;
#include "equal-date.h"
+
#define isleapyear(year) \
((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0))
+
+namespace snapper
+{
+
int
yday_of_weeks_monday(const struct tm& tmp)
{
{
return equal_day(tmp1, tmp2) && tmp1.tm_hour == tmp2.tm_hour;
}
+
+}
*/
+namespace snapper
+{
bool
equal_year(const struct tm& tmp1, const struct tm& tmp2);
bool
equal_hour(const struct tm& tmp1, const struct tm& tmp2);
+}
#include "text.h"
+
+namespace snapper
+{
+
using namespace std;
return string();
return string(sptr, eptr - sptr);
}
+
+}
#include <string>
#include <iosfwd>
+
+namespace snapper
+{
+
const char* _(const char* msgid) __attribute__ ((format_arg(1)));
const char* _(const char* msgid, const char* msgid_plural, unsigned long int n)
std::string::size_type pos,
std::string::size_type n = std::string::npos);
-#endif /* ZYPPER_UTILS_TEXT_H_ */
+}
+
+#endif