MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / Join

Function Join

paddle/cinn/utils/string.h:49–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47 */
48template <typename T = std::string>
49std::string Join(const std::vector<T>& fields, const std::string& splitter) {
50 if (fields.empty()) return "";
51 std::stringstream ss;
52 for (int i = 0; i < fields.size() - 1; i++) ss << fields[i] << splitter;
53 ss << fields.back();
54 return ss.str();
55}
56
57std::vector<std::string> Split(const std::string& str,
58 const std::string& splitter);

Callers 15

Attribute2StringFunction · 0.85
DebugStringFunction · 0.85
CopiedReplaceExprFunction · 0.85
GetSingleMethod · 0.85
ReshapeLoopFunction · 0.85
DebugPrintMethod · 0.85
GetExpandVarPosFunction · 0.85
SinkTrivialLoopAlignFunction · 0.85
GetAllForItersFunction · 0.85
StrategyForConv2dFunction · 0.85
StrategyForGatherFunction · 0.85

Calls 4

emptyMethod · 0.45
sizeMethod · 0.45
backMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected