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:
Mark Olesen
2019-12-17 09:10:35 +01:00
parent c1b07cd103
commit 1cf795a40f
8 changed files with 142 additions and 53 deletions

View File

@ -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,