33 #include <google/protobuf/stubs/stringprintf.h>
40 #include <google/protobuf/stubs/common.h>
41 #include <google/protobuf/stubs/logging.h>
50 #define va_copy(dest, src) ((dest) = (src))
56 static const int kSpaceLength = 1024;
57 char space[kSpaceLength];
63 va_copy(backup_ap, ap);
67 if (
result < kSpaceLength) {
78 va_copy(backup_ap, ap);
96 va_copy(backup_ap, ap);
141 const std::vector<std::string>&
v) {
143 <<
"StringPrintfVector currently only supports up to "
145 <<
"Feel free to add support for more if you need it.";
152 for (
int i = 0;
i <
v.size(); ++
i) {
153 cstr[
i] =
v[
i].c_str();
166 cstr[0], cstr[1], cstr[2], cstr[3], cstr[4],
167 cstr[5], cstr[6], cstr[7], cstr[8], cstr[9],
168 cstr[10], cstr[11], cstr[12], cstr[13], cstr[14],
169 cstr[15], cstr[16], cstr[17], cstr[18], cstr[19],
170 cstr[20], cstr[21], cstr[22], cstr[23], cstr[24],
171 cstr[25], cstr[26], cstr[27], cstr[28], cstr[29],