aGrUM 3.1.1
a C++ library for (probabilistic) graphical models
utils_string_inl.h File Reference

Contains useful methods for random stuff. More...

#include <algorithm>
#include <ranges>
#include <agrum/base/core/utils_string.h>
Include dependency graph for utils_string_inl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  gum
 gum is the global namespace for all aGrUM entities

Functions

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
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::remove_newline (std::string_view s)
 remove all newlines in a string
bool gum::isInteger (std::string_view val)
 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
std::string gum::trim_copy (std::string_view s)
 trim from both ends (copying)

Detailed Description

Contains useful methods for random stuff.

Author
Vincent RENAUDINEAU and Pierre-Henri WUILLEMIN(_at_LIP6)

Definition in file utils_string_inl.h.