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

Function string_appendf

src/butil/string_printf.cpp:121–127  ·  view source on GitHub ↗

Basic declarations; allow for parameters of strings and string pieces to be specified.

Source from the content-addressed store, hash-verified

119// Basic declarations; allow for parameters of strings and string
120// pieces to be specified.
121int string_appendf(std::string* output, const char* format, ...) {
122 va_list ap;
123 va_start(ap, format);
124 const int rc = string_vappendf(output, format, ap);
125 va_end(ap);
126 return rc;
127}
128
129int string_vappendf(std::string* output, const char* format, va_list args) {
130 const size_t old_size = output->size();

Callers 14

TEST_FFunction · 0.85
TESTFunction · 0.85
string_append_valueFunction · 0.85
value_invalidFunction · 0.85
descriptionMethod · 0.85
AppendServerIdentiyMethod · 0.85
SetFailedMethod · 0.85
CloseConnectionMethod · 0.85
AnnotateMethod · 0.85
AnnotateCStrMethod · 0.85
OnDescriptionMethod · 0.85
GetServersMethod · 0.85

Calls 1

string_vappendfFunction · 0.85

Tested by 2

TEST_FFunction · 0.68
TESTFunction · 0.68