Cantera  3.1.0a1
stringUtils.cpp File Reference

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

#include "cantera/base/ct_defs.h"
#include "cantera/base/stringUtils.h"
#include "cantera/base/ctexceptions.h"
#include "cantera/base/utilities.h"
#include "cantera/base/global.h"
#include <boost/algorithm/string.hpp>
#include <sstream>
Include dependency graph for stringUtils.cpp:

Detailed Description

Contains definitions for string manipulation functions within Cantera.

Definition in file stringUtils.cpp.

Go to the source code of this file.

Namespaces

 Cantera
 Namespace for the Cantera kernel.
 

Macros

#define SNPRINTF   snprintf
 

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...