File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -247,7 +247,7 @@ Convert text to upper charaters like "abC" -> "ABC". Worked only with latin alph
247
247
WsjcppCore::replaceAll(std::string& str, const std::string& from, const std::string& to);
248
248
```
249
249
250
- ### replaceAll
250
+ ### split
251
251
252
252
```
253
253
std::string sWhat = "|1a|2b|3c|4d|";
@@ -267,6 +267,23 @@ Example output:
267
267
268
268
```
269
269
270
+ ### join
271
+
272
+ ```
273
+ std::vector<std::string> vWhat;
274
+ vJoin.push("1a");
275
+ vJoin.push("2b");
276
+ vJoin.push("3c");
277
+ vJoin.push("4d");
278
+ std::string sJoined = WsjcppCore::join(vWhat, ",");
279
+ std::cout << sJoined << std::endl;
280
+ ```
281
+
282
+ Example output:
283
+ ```
284
+ 1a,2b,3c,4d
285
+ ```
286
+
270
287
### createUuid
271
288
272
289
Generate uuid, but you need to call ` WsjcppCore::initRandom(); ` before it (for example in main() function)
You can’t perform that action at this time.
0 commit comments