A function to join/concatenate several strings to a single string
| 118 | |
| 119 | // A function to join/concatenate several strings to a single string |
| 120 | string 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 |
| 134 | string dimVectorToString (const vector< vector<int> >& src, const string delimiter) |