MCPcopy Create free account
hub / github.com/apache/brpc / string_vappendf

Function string_vappendf

src/butil/string_printf.cpp:129–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129int string_vappendf(std::string* output, const char* format, va_list args) {
130 const size_t old_size = output->size();
131 const int rc = string_printf_impl(*output, format, args);
132 if (rc != 0) {
133 output->resize(old_size);
134 }
135 return rc;
136}
137
138int string_printf(std::string* output, const char* format, ...) {
139 va_list ap;

Callers 6

CloseMethod · 0.85
SetFailedMethod · 0.85
CloseConnectionMethod · 0.85
FormatStringImplMethod · 0.85
AnnotateMethod · 0.85
string_appendfFunction · 0.85

Calls 3

string_printf_implFunction · 0.85
sizeMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected