blob: 19b006bc93ea531e611f95b5400033fd5b60c36d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// Copyright 2011 Google Inc. All Rights Reserved.
#ifndef STRINGPRINTF_H_
#define STRINGPRINTF_H_
#include <stdarg.h>
#include <string>
namespace art {
// Returns a string corresponding to printf-like formatting of the arguments.
std::string StringPrintf(const char* fmt, ...)
__attribute__((__format__(__printf__, 1, 2)));
// Appends a printf-like formatting of the arguments to 'dst'.
void StringAppendF(std::string* dst, const char* fmt, ...)
__attribute__((__format__(__printf__, 2, 3)));
// Appends a printf-like formatting of the arguments to 'dst'.
void StringAppendV(std::string* dst, const char* format, va_list ap);
} // namespace art
#endif // STRINGPRINTF_H_
|