2023-03-06 14:42:04 +01:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
// Copyright The Music Player Daemon Project
|
2013-10-19 16:58:45 +02:00
|
|
|
|
|
|
|
#ifndef MPD_FORMAT_STRING_HXX
|
|
|
|
#define MPD_FORMAT_STRING_HXX
|
|
|
|
|
|
|
|
#include "Compiler.h"
|
|
|
|
|
2020-03-13 00:31:17 +01:00
|
|
|
#include <cstdarg>
|
2013-10-19 16:58:45 +02:00
|
|
|
|
2021-01-14 12:39:45 +01:00
|
|
|
class AllocatedString;
|
2016-04-12 22:27:15 +02:00
|
|
|
|
2013-10-19 16:58:45 +02:00
|
|
|
/**
|
2020-10-28 15:48:23 +01:00
|
|
|
* Format into an #AllocatedString.
|
2013-10-19 16:58:45 +02:00
|
|
|
*/
|
2022-04-26 20:19:31 +02:00
|
|
|
[[gnu::nonnull]]
|
2021-01-14 12:39:45 +01:00
|
|
|
AllocatedString
|
2020-03-13 00:31:17 +01:00
|
|
|
FormatStringV(const char *fmt, std::va_list args) noexcept;
|
2013-10-19 16:58:45 +02:00
|
|
|
|
|
|
|
/**
|
2020-10-28 15:48:23 +01:00
|
|
|
* Format into an #AllocatedString.
|
2013-10-19 16:58:45 +02:00
|
|
|
*/
|
2022-04-26 20:19:31 +02:00
|
|
|
[[gnu::nonnull(1)]]
|
|
|
|
gcc_printf(1,2)
|
2021-01-14 12:39:45 +01:00
|
|
|
AllocatedString
|
2017-05-16 10:22:52 +02:00
|
|
|
FormatString(const char *fmt, ...) noexcept;
|
2013-10-19 16:58:45 +02:00
|
|
|
|
|
|
|
#endif
|