Cantera
2.0
|
Contains declarations for string manipulation functions within Cantera.More...
Go to the source code of this file.
Namespaces | |
namespace | Cantera |
Provides class Nucleus. | |
Functions | |
std::string | fp2str (const double x, const std::string &fmt) |
Convert a double into a c++ string. | |
std::string | fp2str (const double x) |
Convert a double into a c++ string. | |
std::string | int2str (const int n, const std::string &fmt) |
Convert an int to a string using a format converter. | |
std::string | int2str (const int n) |
Convert an int to a string. | |
std::string | int2str (const size_t n) |
Convert an unsigned integer to a string. | |
std::string | stripws (const std::string &s) |
Strip the leading and trailing white space from a string. | |
std::string | stripnonprint (const std::string &s) |
Strip non-printing characters wherever they are. | |
std::string | lowercase (const std::string &s) |
Cast a copy of a string to lower case. | |
void | parseCompString (const std::string &ss, Cantera::compositionMap &x) |
Parse a composition string into a map consisting of individual key:composition pairs. | |
void | split (const std::string &ss, std::vector< std::string > &w) |
Parse a composition string into individual key:composition pairs. | |
int | fillArrayFromString (const std::string &str, doublereal *const a, const char delim= ' ') |
Interpret a string as a list of floats, and convert it to a vector of floats. | |
std::string | logfileName (const std::string &infile) |
Generate a logfile name based on an input file name. | |
std::string | getBaseName (const std::string &fullPath) |
Get the file name without the path or extension. | |
int | intValue (std::string val) |
Translate a string into one integer value. | |
doublereal | fpValue (std::string val) |
Translate a string into one doublereal value. | |
doublereal | fpValueCheck (std::string val) |
Translate a string into one doublereal value. | |
std::string | parseSpeciesName (const std::string &nameStr, std::string &phaseName) |
Parse a name string, separating out the phase name from the species name. | |
std::string | wrapString (const std::string &s, const int len=70) |
Line wrap a string via a copy operation. | |
int | stripLTWScstring (char str[]) |
Routine strips off white space from a c character string. | |
doublereal | atofCheck (const char *const dptr) |
Translate a char string into a single double. | |
doublereal | strSItoDbl (const std::string &strSI) |
Interpret one or two token string as a single double. | |
void | tokenizeString (const std::string &oval, std::vector< std::string > &v) |
This function separates a string up into tokens according to the location of white space. | |
Contains declarations for string manipulation functions within Cantera.
Definition in file stringUtils.h.