stringUtils.h Source File#
stringUtils.h
Go to the documentation of this file.
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.
Definition stringUtils.cpp:203
bool caseInsensitiveEquals(const string &input, const string &test)
Case insensitive equality predicate.
Definition stringUtils.cpp:223
string stripnonprint(const string &s)
Strip non-printing characters wherever they are.
Definition stringUtils.cpp:47
string vec2str(const vector< double > &v, const string &fmt, const string &sep)
Convert a vector to a string (separated by commas)
Definition stringUtils.cpp:33
double fpValue(const string &val)
Translate a string into one double value.
Definition stringUtils.cpp:121
void tokenizePath(const string &in_val, vector< string > &v)
This function separates a string up into tokens according to the location of path separators.
Definition stringUtils.cpp:196
double fpValueCheck(const string &val)
Translate a string into one double value, with error checking.
Definition stringUtils.cpp:130
Composition parseCompString(const string &ss, const vector< string > &names)
Parse a composition string into a map consisting of individual key:composition pairs.
Definition stringUtils.cpp:58
void tokenizeString(const string &in_val, vector< string > &v)
This function separates a string up into tokens according to the location of white space.
Definition stringUtils.cpp:184
Generated by