Cantera  3.1.0a1
stringUtils.h File Reference

Contains declarations for string manipulation functions within Cantera. More...

#include "ct_defs.h"
Include dependency graph for stringUtils.h:

Detailed Description

Contains declarations for string manipulation functions within Cantera.

Definition in file stringUtils.h.

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Cantera
 Namespace for the Cantera kernel.
 

Functions

string vec2str (const vector< double > &v, const string &fmt="%g", const string &sep=", ")
 Convert a vector to a string (separated by commas) More...
 
string stripnonprint (const string &s)
 Strip non-printing characters wherever they are. More...
 
Composition parseCompString (const string &ss, const vector< string > &names=vector< string >())
 Parse a composition string into a map consisting of individual key:composition pairs. More...
 
double fpValue (const string &val)
 Translate a string into one double value. More...
 
double fpValueCheck (const string &val)
 Translate a string into one double value, with error checking. More...
 
void tokenizeString (const string &oval, vector< string > &v)
 This function separates a string up into tokens according to the location of white space. More...
 
void tokenizePath (const string &oval, vector< string > &v)
 This function separates a string up into tokens according to the location of path separators. More...
 
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. More...
 
string trimCopy (const string &input)
 Trim. More...
 
string toLowerCopy (const string &input)
 Convert to lower case. More...
 
bool caseInsensitiveEquals (const string &input, const string &test)
 Case insensitive equality predicate. More...