|
RSTools 3.1.0
Versatile C++20 utility library
|
#include <cstddef>#include <string>#include <string_view>Go to the source code of this file.
Namespaces | |
| namespace | RST |
| Root namespace of RSTools. | |
| namespace | RST::String |
| String helpers: case, trimming, splitting, joining, replacing, parsing and hashing. | |
Functions | |
Replacing | |
An empty | |
| std::size_t | RST::String::replaceAll (std::string &str, std::string_view from, std::string_view to) |
Replaces every from in str with to and returns the number of replacements. | |
| std::string | RST::String::replaceAllCopy (std::string_view str, std::string_view from, std::string_view to) |
Returns a copy of str with every from replaced by to. | |
| bool | RST::String::replaceFirst (std::string &str, std::string_view from, std::string_view to) |
Replaces the first from in str with to; returns false if there is none. | |