![]() |
aGrUM 3.1.1
a C++ library for (probabilistic) graphical models
|
Utilities for manipulating strings. More...
#include <cctype>#include <cstdlib>#include <sstream>#include <string>#include <vector>#include <agrum/agrum.h>#include <string_view>#include <agrum/base/core/utils_string_inl.h>#include <agrum/base/core/utils_string_tpl.h>Go to the source code of this file.
Namespaces | |
| namespace | gum |
| gum is the global namespace for all aGrUM entities | |
Functions | |
| std::string | gum::getUniqueFileName () |
| Returns a path to a unique file name. | |
| std::string | gum::toLower (std::string_view str) |
| Returns the lowercase version of str. | |
| bool | gum::contains (std::string_view s, std::string_view needle) |
| true if needle in s | |
| bool | gum::endsWith (const std::string_view &value, const std::string_view &ending) |
| Returns true if value ends with ending. | |
| std::vector< std::string > | gum::split (std::string_view orig, std::string_view delimiter) |
| Split str using the delimiter. | |
| std::string | gum::replace (std::string_view s, std::string_view val, std::string_view new_val) |
| Replace val by new_val in s. | |
| bool | gum::isInteger (std::string_view val) |
| return true is a string contains an integer value | |
| bool | gum::isIntegerWithResult (std::string_view val, int *res) |
| return true is a string contains an integer value | |
| bool | gum::isNumerical (std::string_view val) |
| return true is a string contains a numerical (double) value | |
| bool | gum::isNumericalWithResult (std::string_view val, double *res) |
| return true is a string contains a numerical (double) value | |
| void | gum::ltrim (std::string &s) |
| trim from start (in place) | |
| void | gum::rtrim (std::string &s) |
| trim from end (in place) | |
| void | gum::trim (std::string &s) |
| trim from both ends (in place) | |
| std::string | gum::trim_copy (std::string_view s) |
| trim from both ends (copying) | |
| std::string | gum::remove_newline (std::string_view s) |
| remove all newlines in a string | |
| template<typename T> | |
| std::string | gum::compact_tostr (T value) |
| Returns a path to a unique file name. | |
Utilities for manipulating strings.
Definition in file utils_string.h.