MPD: util/FormatString.hxx File Reference

MPD 0.20.15

Data Structures | Functions
FormatString.hxx File Reference
`#include "Compiler.h"`
`#include <stdarg.h>`
Include dependency graph for FormatString.hxx:

Go to the source code of this file.

## Data Structures
class | AllocatedString< T >
| A string pointer whose memory is managed by this class. More...

## Functions
gcc_nonnull_all AllocatedString< char > | FormatStringV (const char *fmt, va_list args)
| Format into a newly allocated string. More...
| gcc_nonnull (1) gcc_printf(1
| Format into a newly allocated string. More...
AllocatedString< char > | FormatString (const char *fmt,...)

## Function Documentation

## ◆ FormatString()

AllocatedString<char> FormatString | ( | const char * | fmt,
|  |  | ...
| ) |  |

## ◆ FormatStringV()

gcc_nonnull_all AllocatedString<char> FormatStringV | ( | const char * | fmt,
|  | va_list | args
| ) |  |

Format into a newly allocated string.

The caller frees the return value with delete[].

## ◆ gcc_nonnull()

gcc_nonnull | ( | 1 |  | ) |

Format into a newly allocated string.

The caller frees the return value with delete[].