|
| static std::string | trim (const std::string &data) |
| static std::vector< std::string > | split (std::string data, const std::string &delimiter) |
| static void | ltrim (std::string &data) |
| static void | rtrim (std::string &data) |
◆ ltrim()
| void privmx::endpoint::core::Utils::ltrim |
( |
std::string & | data | ) |
|
|
static |
Removes all whitespace from the left of given string.
- Parameters
-
◆ rtrim()
| void privmx::endpoint::core::Utils::rtrim |
( |
std::string & | data | ) |
|
|
static |
Removes all whitespace from the right of given string.
- Parameters
-
◆ split()
| std::vector< std::string > privmx::endpoint::core::Utils::split |
( |
std::string | data, |
|
|
const std::string & | delimiter ) |
|
static |
Splits string by given delimiter (delimiter is removed).
- Parameters
-
| data | string to split |
| delimiter | string which will be split |
- Returns
- vector containing all split parts
◆ trim()
| std::string privmx::endpoint::core::Utils::trim |
( |
const std::string & | data | ) |
|
|
static |
Removes all trailing whitespace.
- Parameters
-
- Returns
- copy of string with removed trailing whitespace.
The documentation for this class was generated from the following file: