STYLE: single-string findStrings deprecated in favour of stringOps::match

- reduces ambiguity between matching a list of strings and a single string.
This commit is contained in:
Mark Olesen
2017-11-13 10:37:38 +01:00
parent 5a6b59d8b0
commit 14d4484fae
8 changed files with 25 additions and 23 deletions

View File

@ -79,7 +79,7 @@ Usage
#include "tensorIOField.H"
#include "passiveParticleCloud.H"
#include "faceSet.H"
#include "stringListOps.H"
#include "stringOps.H"
#include "wordReList.H"
#include "meshSubsetHelper.H"
@ -137,7 +137,7 @@ labelList getSelectedPatches
Info<< " discarding empty/processor patch " << patchi
<< " " << pp.name() << endl;
}
else if (findStrings(excludePatches, pp.name()))
else if (stringOps::match(excludePatches, pp.name()))
{
Info<< " excluding patch " << patchi
<< " " << pp.name() << endl;

View File

@ -154,7 +154,7 @@ Note
#include "faceZoneMesh.H"
#include "Cloud.H"
#include "passiveParticle.H"
#include "stringListOps.H"
#include "stringOps.H"
#include "meshSubsetHelper.H"
#include "readFields.H"
@ -1172,7 +1172,7 @@ int main(int argc, char *argv[])
{
const polyPatch& pp = patches[patchi];
if (findStrings(excludePatches, pp.name()))
if (stringOps::match(excludePatches, pp.name()))
{
// Skip excluded patch
continue;