|
| bool | ant::std_ext::string_ends_with (std::string const &value, std::string const &ending) |
| | Check if a string ends with a substr. For example useful for file extensions. More...
|
| |
| bool | ant::std_ext::string_starts_with (std::string const &value, std::string const &beginning) |
| |
| void | ant::std_ext::replace (std::string &subject, const std::string &search, const std::string &replace) |
| | replace a substring More...
|
| |
| std::string | ant::std_ext::replace_str (const std::string &input, const std::string &search, const std::string &replace) |
| |
| std::string | ant::std_ext::string_sanitize (std::string s) |
| | string_sanitize removes nasty whitespace from string More...
|
| |
| bool | ant::std_ext::contains (const std::string &str, const std::string &needle) |
| |
| void | ant::std_ext::removesubstr (std::string &str, const std::string &substr) |
| | Remove all occurences of substr from str. More...
|
| |
| void | ant::std_ext::remove_char (std::string &str, const char ch) |
| | Remove all occurences of charachter ch from str. More...
|
| |
| void | ant::std_ext::remove_chars (std::string &str, const std::initializer_list< const char > chars) |
| | Remove all occurences of certain charachters from str. More...
|
| |
| std::string | ant::std_ext::basename (const std::string &filenamepath) |
| |
| std::vector< std::string > | ant::std_ext::tokenize_string (const std::string &str, const std::string &delim) |
| |
| std::string | ant::std_ext::concatenate_string (const std::vector< std::string > &tokens, const std::string &delim) |
| |
| std::string | ant::std_ext::to_lower (const std::string &str) |
| |
| std::string | ant::std_ext::to_upper (const std::string &str) |
| |