Skip to content

Commit afc679d

Browse files
committed
Updated README.md
1 parent f909085 commit afc679d

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ Convert text to upper charaters like "abC" -> "ABC". Worked only with latin alph
247247
WsjcppCore::replaceAll(std::string& str, const std::string& from, const std::string& to);
248248
```
249249

250-
### replaceAll
250+
### split
251251

252252
```
253253
std::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

272289
Generate uuid, but you need to call `WsjcppCore::initRandom();` before it (for example in main() function)

0 commit comments

Comments
 (0)