Cantera  2.0
Namespaces | Functions
ckr_utils.cpp File Reference
#include <ctype.h>
#include <math.h>
#include "ckr_utils.h"
#include <string.h>
Include dependency graph for ckr_utils.cpp:

Go to the source code of this file.


namespace  ckr
 the namespace for the CKReader packaage


bool match (const std::string &s1, const std::string &s2)
 Perform a case-insensitive comparison of the first n2 characters of strings s1 and s2, where n2 is the length of s2.
void removeWhiteSpace (std::string &s)
 Remove all white space from string s.
void getTokens (std::string &s, int n, std::vector< std::string > &toks, char delim)
 Get tokens from char array of length n beginning at 'begin'.
bool extractSlashData (std::string &s, std::string &name, std::string &data)
 Look for a slash-delimited number in string s, and if found set v to the numerical value, and set s to the portion of the string before the first slash.
string capitalize (const std::string &word)
 Return a modified version of string word, in which the first letter is upper case, and the rest are lower case.