|
lintel 0.2.0
|
#include <StringUtils.h>
Public Member Functions | |
| StringUtils ()=delete | |
| StringUtils (StringUtils &)=delete | |
| StringUtils (StringUtils &&)=delete | |
Static Public Member Functions | |
| static std::vector< std::string > | split (const std::string &s, char delimiter) |
| static constexpr bool | startsWith (std::string_view s, std::string_view start) |
| static constexpr bool | endsWith (std::string_view s, std::string_view end) |
| static std::string | replaceAll (const std::string &s, std::string &&replace, std::string &&with) |
Class for collecting of extra string utils
|
delete |
|
delete |
|
delete |
|
inlinestaticconstexpr |
Check if a string ends with the given suffix.
| s | the string to check |
| end | the suffix to look for |
|
static |
Replace all occurrences of a substring with another string.
| s | the input string |
| replace | the substring to replace |
| with | the replacement string |
|
static |
function splits string with defined delimter into tokens
| s | string to be split |
| delimiter | for differentiate between tokens |
|
inlinestaticconstexpr |
Check if a string starts with the given prefix.
| s | the string to check |
| start | the prefix to look for |