All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
stringOps.H File Reference
Include dependency graph for stringOps.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Foam::stringOps
 Collection of static functions to do various simple string-related operations.
 
 Foam
 Namespace for OpenFOAM.
 

Functions

string expand (const string &, const HashTable< string, word, string::hash > &mapping, const char sigil='$')
 Expand occurrences of variables according to the mapping. More...
 
string & inplaceExpand (string &, const HashTable< string, word, string::hash > &mapping, const char sigil='$')
 Inplace expand occurrences of variables according to the mapping. More...
 
string expand (const string &, const dictionary &dict, const char sigil='$')
 Expand occurrences of variables according to the dictionary. More...
 
string getVariable (const word &name, const dictionary &dict, const bool allowEnvVars, const bool allowEmpty)
 Get dictionary or (optionally) environment variable. More...
 
string expand (const string &s, string::size_type &index, const dictionary &dict, const bool allowEnvVars, const bool allowEmpty)
 Recursively expands (dictionary or environment) variable. More...
 
string & inplaceExpand (string &s, const dictionary &dict, const bool allowEnvVars, const bool allowEmpty, const char sigil='$')
 Inplace expand occurrences of variables according to the dictionary. More...
 
string & inplaceExpand (string &, const dictionary &dict, const char sigil='$')
 Inplace expand occurrences of variables according to the dictionary. More...
 
string expand (const string &, const bool allowEmpty=false)
 Expand initial tildes and all occurrences of environment variables. More...
 
string & inplaceExpand (string &, const bool allowEmpty=false)
 Expand initial tildes and all occurrences of environment variables. More...
 
string trimLeft (const string &)
 Return string trimmed of leading whitespace. More...
 
string & inplaceTrimLeft (string &)
 Trim leading whitespace inplace. More...
 
string trimRight (const string &)
 Return string trimmed of trailing whitespace. More...
 
string & inplaceTrimRight (string &)
 Trim trailing whitespace inplace. More...
 
string trim (const string &)
 Return string trimmed of leading and trailing whitespace. More...
 
string & inplaceTrim (string &)
 Trim leading and trailing whitespace inplace. More...
 

Detailed Description

Original source file stringOps.H

Definition in file stringOps.H.