StringUtils.hpp
84 inline auto split(const std::string& str, const std::string& delims = " ") -> std::vector<std::string>
90 inline auto splitrim(const std::string& str, const std::string& delims = " ") -> std::vector<std::string>
auto splitrim(const std::string &str, const std::string &delims=" ") -> std::vector< std::string >
Split the string on every occurrence of the specified delimiters and trim each word.
Definition: StringUtils.hpp:90
auto trim(std::string &str) -> std::string &
Trim the string from both ends (taken from http://stackoverflow.com/questions/216823/whats-the-best-w...
Definition: StringUtils.hpp:62
auto end(const Reaktoro::ReactionEquation &equation) -> decltype(equation.equation().end())
Return end const iterator of a ReactionEquation instance.
Definition: ReactionEquation.hpp:98
auto split(const std::string &str, const std::string &delims, std::function< std::string &(std::string &)> transform) -> std::vector< std::string >
Split the string on every occurrence of the specified delimiters.
Definition: StringUtils.hpp:68
The namespace containing all components of the Reaktoro library.
Definition: ChemicalScalar.hpp:24
auto rightTrim(std::string &str) -> std::string &
Trim the string from end (taken from http://stackoverflow.com/questions/216823/whats-the-best-way-to-...
Definition: StringUtils.hpp:54
auto join(const std::vector< std::string > &strs, std::string delim=" ") -> std::string
Join several strings into one.
Definition: StringUtils.hpp:96
auto tofloats(const std::string &str, const std::string &delims=" ") -> std::vector< double >
Convert the string into a list of floating point numbers.
Definition: StringUtils.hpp:111
auto uppercase(std::string str) -> std::string
Return a string with upper case characters.
Definition: StringUtils.hpp:39
auto lowercase(std::string str) -> std::string
Return a string with lower case characters.
Definition: StringUtils.hpp:32
auto tofloat(const std::string &str) -> double
Convert the string into a floating point number.
Definition: StringUtils.hpp:105
auto leftTrim(std::string &str) -> std::string &
Trim the string from start (taken from http://stackoverflow.com/questions/216823/whats-the-best-way-t...
Definition: StringUtils.hpp:46