21#ifndef __ANTARES_LIBS_UTILS_H__
22#define __ANTARES_LIBS_UTILS_H__
28#include <yuni/core/string.h>
37template<
class StringT>
38void TransformNameIntoID(
const AnyString& name, StringT& out);
39std::string transformNameIntoID(
const std::string& name);
41std::tm getCurrentTime();
42std::string formatTime(
const std::tm& localTime,
const std::string& format);
47void BeautifyName(YString& out, AnyString oldname);
48void BeautifyName(std::string& out,
const std::string& oldname);
50std::vector<std::pair<std::string, std::string>> splitStringIntoPairs(
const std::string& s,
58double round(
double d,
unsigned precision);
59double ceilDiv(
double numerator,
double denominator);
60double floorDiv(
double numerator,
double denominator);
62bool checkAllElementsIdenticalOrOne(std::vector<unsigned> w);
63bool checkAllElementsIdenticalOrOne(std::vector<std::pair<unsigned, std::string>>& p);