22 #include <olp/core/CoreApi.h>
29 #if (defined(__GNUC__) || defined(__clang__))
30 #define CHECK_PRINTF_FORMAT_STRING(format_string_pos, first_to_check) \
31 __attribute__((format(printf, (format_string_pos), (first_to_check))))
33 #define CHECK_PRINTF_FORMAT_STRING(format_string_pos, first_to_check)
41 using TimePoint = std::chrono::time_point<std::chrono::system_clock>;
50 CORE_API std::string format(
const char* formatStr, ...)
51 CHECK_PRINTF_FORMAT_STRING(1, 2);
62 CORE_API std::
string formatv(const
char* formatStr, va_list args);
74 CORE_API std::
string formatLocalTime(const TimePoint& timestamp);
84 CORE_API std::
string formatLocalTime(const TimePoint& timestamp,
85 const
char* formatStr);
97 CORE_API std::
string formatUtcTime(const TimePoint& timestamp);
107 CORE_API std::
string formatUtcTime(const TimePoint& timestamp,
108 const
char* formatStr);
127 const char*
format(
const char* formatStr, ...)
128 CHECK_PRINTF_FORMAT_STRING(2, 3);
139 const
char* formatv(const
char* formatStr, va_list args);
151 const
char* formatLocalTime(const TimePoint& timestamp);
161 const
char* formatLocalTime(const TimePoint& timestamp,
162 const
char* formatStr);
174 const
char* formatUtcTime(const TimePoint& timestamp);
184 const
char* formatUtcTime(const TimePoint& timestamp, const
char* formatStr);
187 friend std::
string logging::formatv(const
char* formatStr, va_list args);
189 const
char* formatTm(const struct tm& timestampTm, const
char* formatStr);
191 static const
unsigned int bufferSize = 256;
192 char m_buffer[bufferSize]{};
193 std::vector<char> m_auxBuffer;
Rules all the other namespaces.
Definition: AppleSignInProperties.h:24