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 expandEnvVar (const string &, const bool allowEmpty=false)
 Expand all occurrences of environment variables and paths. More...
 
string & inplaceExpandEnvVar (string &, const bool allowEmpty=false)
 Expand all occurrences of environment variables and paths. More...
 
string & inplaceExpandCodeString (string &, const dictionary &dict, const word &dictVar="dict", const char sigil='$')
 Inplace expand occurrences of variables according to the dictionary. More...
 
string & inplaceExpandCodeTemplate (string &, const HashTable< string, word, string::hash > &mapping, const char sigil='$')
 Inplace expand occurrences of variables according to the mapping. More...
 
string & inplaceExpandEntry (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 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...
 
string breakIntoIndentedLines (const string &str, const string::size_type nLength=80, const string::size_type nIndent=0)
 Break a string up into indented lines. More...
 

Detailed Description

Original source file stringOps.H

Definition in file stringOps.H.