ChaiLove API
2.0.0
|
Provides some additional functionality to the basic string object. More...
Public Member Functions | |
std::string | replace (const std::string &search, const std::string &replace) |
Replaces all instances of the search string with the given replace string. More... | |
std::string | trim () |
Returns a trimmed version of the given string. More... | |
std::string | split (const std::string &token) |
Splits a string by the given token. | |
Provides some additional functionality to the basic string object.
std::string String::replace | ( | const std::string & | search, |
const std::string & | replace | ||
) |
Replaces all instances of the search string with the given replace string.
search | The string to search for that should be replaced. |
replace | The string that will replace the found string. |
std::string String::trim | ( | ) |
Returns a trimmed version of the given string.