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

Method Write

src/butil/location.cc:42–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42void Location::Write(bool display_filename, bool display_function_name,
43 std::string* output) const {
44 butil::StringAppendF(output, "%s[%d] ",
45 display_filename ? file_name_ : "line",
46 line_number_);
47
48 if (display_function_name) {
49 WriteFunctionName(output);
50 output->push_back(' ');
51 }
52}
53
54void Location::WriteFunctionName(std::string* output) const {
55 // Translate "<" to "&lt;" for HTML safety.

Callers

nothing calls this directly

Calls 2

StringAppendFFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected