ADTF  3.18.2
strings_format.h
Go to the documentation of this file.
1 
15 #ifndef A_UTIL_UTIL_STRINGS_STRINGS_FORMAT_HEADER_INCLUDED
16 #define A_UTIL_UTIL_STRINGS_STRINGS_FORMAT_HEADER_INCLUDED
17 
18 #include <string> //std::string
19 #include <cstdint>
20 
21 namespace a_util {
22 namespace strings {
29 std::string format(const char* str_format, ...);
30 
39 std::string format(std::size_t initial_buffer_size, const char* str_format, ...);
40 
51 std::string& format(std::string& buffer, std::size_t& pos, const char* str_format, ...);
52 
58 std::string toString(bool from);
59 
65 std::string toString(std::int8_t from);
67 std::string toString(std::int16_t from);
69 std::string toString(std::int32_t from);
71 std::string toString(std::int64_t from);
73 std::string toString(std::uint8_t from);
75 std::string toString(std::uint16_t from);
77 std::string toString(std::uint32_t from);
79 std::string toString(std::uint64_t from);
81 std::string toString(float from);
83 std::string toString(double from);
84 
85 } // namespace strings
86 } // namespace a_util
87 
88 #endif // A_UTIL_UTIL_STRINGS_STRINGS_FORMAT_HEADER_INCLUDED
std::string format(const char *str_format,...)
printf()-like formatting of an input string.
std::string toString(bool from)
Convert the boolean value to its string representation.
Serves as the root component, with common functionality documented in core functionality.
Definition: base.h:24