AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
Functions | |
bool | endsWith (const std::string &str, const std::string &suffix) |
Tests whether a string ends with another string https://stackoverflow.com/questions/20446201/how-to-check-if-string-ends-with-txt/20446257. More... | |
bool | endsWith (const std::string &str, const char suffix) |
Tests whether a string ends with a char. More... | |
bool | startsWith (const std::string &str, const std::string &prefix) |
Tests whether a string starts with another string. More... | |
bool | startsWith (const std::string &str, const char prefix) |
Tests whether a string starts with a char. More... | |
void | split (std::vector< std::string > &tokens, const std::string &str, const char delimiter) |
Splits the given string based on the given delimiter. More... | |
|
inline |
Tests whether a string ends with another string https://stackoverflow.com/questions/20446201/how-to-check-if-string-ends-with-txt/20446257.
[in] | str | string to be searched |
[in] | suffix | string to be checked for |
|
inline |
Tests whether a string ends with a char.
[in] | str | string to be searched |
[in] | suffix | char to be checked for |
|
inline |
Tests whether a string starts with another string.
[in] | str | string to be searched |
[in] | prefix | string to be checked for |
|
inline |
Tests whether a string starts with a char.
[in] | str | string to be searched |
[in] | prefix | char to be checked for |
References split().
void axom::utilities::string::split | ( | std::vector< std::string > & | tokens, |
const std::string & | str, | ||
const char | delimiter | ||
) |
Splits the given string based on the given delimiter.
[out] | tokens | vector that the found tokens are appended to |
[in] | str | string to be tokenized |
[in] | delimiter | char to split string on |
Referenced by startsWith().