mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: use exprString expansions for #eval
- follows the principle of least surprise if the expansion behaviour for #eval and expressions (eg, exprFixedValue) are the same. This is possible now that we harness the regular stringOps::expand() within exprString::expand()
This commit is contained in:
@ -118,7 +118,14 @@ public:
|
||||
// Static Member Functions
|
||||
|
||||
//- Inplace expansion with dictionary variables,
|
||||
//- and strip C/C++ comments from the input
|
||||
//- and strip C/C++ comments from the input.
|
||||
//
|
||||
// \par Expansion behaviour
|
||||
// - alternatives = True
|
||||
// - environment = True
|
||||
// - allow empty = True
|
||||
// - subDict = False
|
||||
// .
|
||||
static void inplaceExpand
|
||||
(
|
||||
std::string& str,
|
||||
@ -127,7 +134,9 @@ public:
|
||||
);
|
||||
|
||||
//- Get and expand expression with dictionary entries,
|
||||
//- optionally strip C/C++ comments from the input
|
||||
//- optionally strip C/C++ comments from the input.
|
||||
//
|
||||
// Expansion behaviour as per inplaceExpand
|
||||
static exprString getExpression
|
||||
(
|
||||
const word& name,
|
||||
|
||||
Reference in New Issue
Block a user