ParseUtils.hpp
The namespace containing all components of the Reaktoro library.
Definition: Algorithms.hpp:29
Vec< Pair< T, U > > Pairs
Convenient alias for std::vector<std::pair<T, U>>.
Definition: Types.hpp:90
auto parseNumberStringPairs(const String &str) -> Pairs< String, double >
Parse a formatted string containing pairs of numbers and strings.
auto parseReaction(const String &equation) -> Pairs< String, double >
Parse a reaction equation.
auto parseChemicalFormula(const String &formula) -> Pairs< String, double >
Return the element symbols and their coefficients in a chemical formula.
auto parseElectricCharge(const String &formula) -> double
Return the electric charge in a chemical formula.
auto str(Args... items) -> std::string
Concatenate the arguments into a string without any separator string.
Definition: StringUtils.hpp:73
auto parseReactionEquation(const String &equation) -> Pairs< String, double >
Parse a formatted string representing a reaction equation.