Celeritas 0.6.0-dev.116+3fbab5e0
|
Helper functions for string processing. More...
#include <cstdlib>
#include <string>
#include <string_view>
Functions | |
bool | celeritas::starts_with (std::string_view main_string, std::string_view prefix) |
Whether the string starts with another string. | |
bool | celeritas::ends_with (std::string_view main_string, std::string_view suffix) |
Whether the string ends with another string. | |
bool | celeritas::is_ignored_trailing (unsigned char c) |
Whether the character is whitespace or unprintable. | |
bool | celeritas::cstring_equal (char const *lhs, char const *rhs) |
Test C strings for equality, allowing one or the other to be null. | |
std::string_view | celeritas::trim (std::string_view input) |
Return a string view with leading and trailing whitespace removed. | |
std::string | celeritas::tolower (std::string_view input) |
Return a lower-cased copy of the input string. | |
Helper functions for string processing.