NamingUtils.hpp
The namespace containing all components of the Reaktoro library.
Definition: Algorithms.hpp:29
auto isAlternativeWaterName(std::string trial) -> bool
Return true if a trial name is an alternative to a water species name.
auto splitChargedSpeciesName(std::string name) -> std::pair< std::string, double >
Return a pair with the base name of a charged species and its electrical charge.
auto alternativeNeutralSpeciesNames(std::string name) -> std::vector< std::string > &
Return a collection of alternative names to the given neutral species name.
auto conventionalNeutralSpeciesName(std::string name) -> std::string
Return the conventional neutral species name adopted in Reaktoro.
auto alternativeWaterNames() -> std::vector< std::string >
Return a collection of alternative names to the given species name.
auto splitSpeciesNameSuffix(std::string name) -> std::pair< std::string, std::string >
Split name and suffix from a substance name or chemical formula.
auto isAlternativeChargedSpeciesName(std::string trial, std::string name) -> bool
Return true if a trial name is an alternative to a given charged species name.
auto conventionalWaterName() -> std::string
Return the conventional water name, which is H2O(l).
auto chargeInSpeciesName(std::string name) -> double
Return the electrical charge in a species name.
auto baseNameChargedSpecies(std::string name) -> std::string
Return the name of a charged species without charge suffix.
auto conventionalChargedSpeciesName(std::string name) -> std::string
Return the conventional charged species name adopted in Reaktoro.
auto baseNameNeutralSpecies(std::string name) -> std::string
Return the name of a neutral species without suffix (aq).
auto alternativeChargedSpeciesNames(std::string name) -> std::vector< std::string > &
Return a collection of alternative names to the given charged species name.
auto isAlternativeNeutralSpeciesName(std::string trial, std::string name) -> bool
Return true if a trial name is an alternative to a given neutral species name.