2
0
mirror of https://github.com/ars3niy/tdlib-purple synced 2025-08-28 20:47:39 +00:00
tdlib-purple/format.h

19 lines
414 B
C
Raw Normal View History

#ifndef _FORMAT_H
#define _FORMAT_H
#include <string>
#include "translate.h"
std::string formatMessage(const char *fmt, std::initializer_list<std::string> args);
std::string formatMessage(const char *fmt, const std::string &s);
template<typename T>
std::string formatMessage(const char *fmt, T arg)
{
return formatMessage(fmt, {std::to_string(arg)});
}
std::string formatDuration(int32_t seconds);
#endif