Skip to content

Commit 8162099

Browse files
authored
Update README.md
1 parent feff8bf commit 8162099

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ stringtoolbox is available as single-file, header-only library - just drop [stri
1717
## Features
1818
* Written in highly portable and high quality C++11
1919
* **Available as header-only, single-file distribution - just drop [stringtoolbox.hpp](https://raw.githubusercontent.com/chrberger/stringtoolbox/master/stringtoolbox.hpp) into your project, `#include "stringtoolbox.hpp"`, and compile your project with a modern C++ compiler (C++11 or newer)**
20-
* Remove leading whitespace characters: `std::string& stringtoolbox::ltrim(std::string &str)`
21-
* Remove trailing whitespace characters: `std::string& stringtoolbox::rtrim(std::string &str)`
22-
* Remove leading and trailing whitespace characters: `std::string& stringtoolbox::trim(std::string &str)`
23-
* Replace all occurrences of character FROM with TO: `std::string& stringtoolbox::replaceAll(const std::string &str, const char &FROM, const char &TO)`
24-
* Split a string using the given delimiter: `std::vector<std::string> split(const std::string &str, const char &delimiter)`
20+
* Remove leading whitespace characters: `std::string retVal = stringtoolbox::ltrim(myString);`
21+
* Remove trailing whitespace characters: `std::string retVal = stringtoolbox::rtrim(myString);`
22+
* Remove leading and trailing whitespace characters: `std::string retVal = stringtoolbox::trim(myString);`
23+
* Replace all occurrences of character FROM with TO: `std::string retVal = stringtoolbox::replaceAll(myString, 'X', 'Y');`
24+
* Split a string using the given delimiter: `std::vector<std::string> retVal = split(myString, ',');`
2525

2626

2727
## Dependencies

0 commit comments

Comments
 (0)