BUG: dangling dictionary reference for expression BCs

- exposed by the new embedded function handling.

  Requires local copies of dictionary content instead
  (similar to coded BCs handling)

BUG: incorrect formatting for expression function output

ENH: simpler copyDict version taking wordList instead of wordRes

- corresponds to the most common use case at the moment

ENH: expression string writeEntry method

- write as verbatim for better readability
This commit is contained in:
Mark Olesen
2021-12-01 15:45:41 +01:00
parent e09298092d
commit 27e57c29f7
25 changed files with 398 additions and 169 deletions

View File

@ -183,6 +183,19 @@ public:
//- Move assign from string. No expansions, no comment stripping
inline exprString& operator=(std::string&& str);
// Write
//- Dictionary entry for expression string, normally suppressing
//- empty strings. Generally used verbatim output (readability)
// \return true if entry was written
bool writeEntry
(
const word& keyword,
Ostream& os,
bool writeEmpty = false
) const;
};