9#ifndef CT_STRINGUTILS_H
10#define CT_STRINGUTILS_H
28string vec2str(
const vector<double>& v,
const string& fmt=
"%g",
const string& sep=
", ");
61 const vector<string>& names=vector<string>());
70double fpValue(
const string& val);
118void tokenizePath(
const string& oval, vector<string>& v);
126size_t copyString(
const string& source,
char* dest,
size_t length);
132string trimCopy(
const string &input);
This file contains definitions of constants, types and terms that are used in internal routines and a...
size_t copyString(const string &source, char *dest, size_t length)
Copy the contents of a string into a char array of a given length.
bool caseInsensitiveEquals(const string &input, const string &test)
Case insensitive equality predicate.
string stripnonprint(const string &s)
Strip non-printing characters wherever they are.
string vec2str(const vector< double > &v, const string &fmt, const string &sep)
Convert a vector to a string (separated by commas)
double fpValue(const string &val)
Translate a string into one double value.
string trimCopy(const string &input)
Trim.
void tokenizePath(const string &in_val, vector< string > &v)
This function separates a string up into tokens according to the location of path separators.
double fpValueCheck(const string &val)
Translate a string into one double value, with error checking.
string toLowerCopy(const string &input)
Convert to lower case.
Composition parseCompString(const string &ss, const vector< string > &names)
Parse a composition string into a map consisting of individual key:composition pairs.
void tokenizeString(const string &in_val, vector< string > &v)
This function separates a string up into tokens according to the location of white space.
Namespace for the Cantera kernel.
map< string, double > Composition
Map from string names to doubles.