MCPcopy Create free account
hub / github.com/apache/impala / JoinStringsInArray

Function JoinStringsInArray

be/src/gutil/strings/join.cc:97–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95// ----------------------------------------------------------------------
96
97void JoinStringsInArray(string const* const* components,
98 int num_components,
99 const char* delim,
100 string * result) {
101 CHECK(result != nullptr);
102 result->clear();
103 for (int i = 0; i < num_components; i++) {
104 if (i>0) {
105 (*result) += delim;
106 }
107 (*result) += *(components[i]);
108 }
109}
110
111void JoinStringsInArray(string const *components,
112 int num_components,

Callers

nothing calls this directly

Calls 2

JoinStringsIteratorFunction · 0.85
clearMethod · 0.65

Tested by

no test coverage detected