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
247247WsjcppCore::replaceAll(std::string& str, const std::string& from, const std::string& to);
248248```
249249
250- ### replaceAll
250+ ### split
251251
252252```
253253std::string sWhat = "|1a|2b|3c|4d|";
@@ -267,6 +267,23 @@ Example output:
267267
268268```
269269
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+
270287### createUuid
271288
272289Generate 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