Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill the now useless type xbt::string
[simgrid.git] / include / xbt / string.hpp
1 /* Copyright (c) 2015-2022. The SimGrid Team. All rights reserved.          */
2
3 /* This program is free software; you can redistribute it and/or modify it
4  * under the terms of the license (GNU LGPL) which comes with this package. */
5
6 #ifndef SIMGRID_XBT_STRING_HPP
7 #define SIMGRID_XBT_STRING_HPP
8
9 #include "xbt/base.h"
10
11 #include <cstdarg>
12 #include <cstdlib>
13 #include <string>
14
15 namespace simgrid {
16 namespace xbt {
17
18 /** Create a C++ string from a C-style format
19  *
20  * @ingroup XBT_str
21  */
22 XBT_PUBLIC std::string string_printf(const char* fmt, ...) XBT_ATTRIB_PRINTF(1, 2);
23
24 /** Create a C++ string from a C-style format
25  *
26  * @ingroup XBT_str
27  */
28 XBT_PUBLIC std::string string_vprintf(const char* fmt, va_list ap) XBT_ATTRIB_PRINTF(1, 0);
29
30 } // namespace xbt
31 }
32 #endif