1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-02-01 01:25:13 +01:00
GPXSee/src/common/util.h

22 lines
398 B
C
Raw Normal View History

2018-10-11 18:19:35 +02:00
#ifndef UTIL_H
#define UTIL_H
2021-01-17 19:33:06 +01:00
#include <QString>
class QTemporaryDir;
2022-11-04 09:03:36 +01:00
#define ARRAY_SIZE(array) \
(sizeof(array) / sizeof(array[0]))
2021-01-17 19:33:06 +01:00
namespace Util
{
2022-11-04 09:03:36 +01:00
int log2i(unsigned val);
2021-02-01 20:06:05 +01:00
int str2int(const char *str, int len);
2021-01-17 19:33:06 +01:00
double niceNum(double x, bool round);
QString file2name(const QString &path);
2022-05-28 14:05:14 +02:00
QString displayName(const QString &path);
const QTemporaryDir &tempDir();
2021-01-17 19:33:06 +01:00
}
2018-10-11 18:19:35 +02:00
#endif // UTIL_H