BUG: stringOps etc expansion fails for directories (issue #1121)

- now use findEtcEntry() instead to handle file or directory.

  Added findEtcEntries(), which provides provides a common code basis
  for findEtcDirs(), findEtcFiles() ...
This commit is contained in:
Mark Olesen
2018-12-13 12:48:31 +01:00
parent 3d95f56589
commit 2db0db3006
8 changed files with 307 additions and 181 deletions

View File

@ -224,7 +224,7 @@ namespace stringOps
// -# leading tag expansion for commonly used directories
// - <b> \<etc\>/ </b>
// : user/group/other OpenFOAM etc directory
// - <b> \<etc:</b><em>[ugo]+</em>)<b>\>/ </b>
// - <b> \<etc:</b><em>[ugoa]+</em>)<b>\>/ </b>
// : user/group/other etc with specified location mode
// - <b> \<case\>/ </b>
// : The \c $FOAM_CASE directory
@ -263,7 +263,7 @@ namespace stringOps
// "~OpenFOAM" expansion
//
// \sa
// Foam::findEtcFile
// Foam::findEtcEntry(), Foam::findEtcEntries(),
string expand
(
const string& original,
@ -280,7 +280,7 @@ namespace stringOps
// -# leading tag expansion for commonly used directories
// - <b> \<etc\>/ </b>
// : user/group/other OpenFOAM etc directory
// - <b> \<etc:</b><em>[ugo]+</em>)<b>\>/ </b>
// - <b> \<etc:</b><em>[ugoa]+</em>)<b>\>/ </b>
// : user/group/other etc with specified location mode
// - <b> \<case\>/ </b>
// : The \c $FOAM_CASE directory
@ -312,7 +312,7 @@ namespace stringOps
// "~OpenFOAM" expansion
//
// \sa
// Foam::findEtcFile
// Foam::findEtcEntry(), Foam::findEtcEntries(),
void inplaceExpand
(
std::string& s,