MCPcopy Create free account
hub / github.com/Xilinx/CHaiDNN / stringVectorToString

Function stringVectorToString

software/xtract/xi_funcs.cpp:120–131  ·  view source on GitHub ↗

A function to join/concatenate several strings to a single string

Source from the content-addressed store, hash-verified

118
119// A function to join/concatenate several strings to a single string
120string stringVectorToString (const vector<string>& src, const string delimiter)
121{
122 string tmp = "";
123 string delim = "";
124 for(int i=0; i<src.size(); i++)
125 {
126 tmp += src.at(i);
127 delim = (i==src.size()-1) ? "" : delimiter;
128 tmp += delim;
129 }
130 return tmp;
131}
132
133// A function to join multiple blob shapes to a single string
134string dimVectorToString (const vector< vector<int> >& src, const string delimiter)

Callers 4

strMethod · 0.85
strMethod · 0.85
strMethod · 0.85
strMethod · 0.85

Calls 2

sizeMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected