mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
wildcards in dictionaries
This commit is contained in:
@ -100,13 +100,23 @@ int main(int argc, char *argv[])
|
||||
|
||||
if (dict.found(entryNames[0]))
|
||||
{
|
||||
const entry* entPtr = &dict.lookupEntry(entryNames[0]);
|
||||
const entry* entPtr = &dict.lookupEntry
|
||||
(
|
||||
entryNames[0],
|
||||
false,
|
||||
true // wildcards
|
||||
);
|
||||
|
||||
for (int i=1; i<entryNames.size(); i++)
|
||||
{
|
||||
if (entPtr->dict().found(entryNames[i]))
|
||||
{
|
||||
entPtr = &entPtr->dict().lookupEntry(entryNames[i]);
|
||||
entPtr = &entPtr->dict().lookupEntry
|
||||
(
|
||||
entryNames[i],
|
||||
false,
|
||||
true // wildcards
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@ -37,7 +37,7 @@ inline Foam::word Foam::vtkPV3Foam::getFirstWord(const char* str)
|
||||
{
|
||||
++n;
|
||||
}
|
||||
return word(str, n);
|
||||
return word(str, n, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@ -164,7 +164,16 @@ int main(int argc, char *argv[])
|
||||
forAll(dictList, i)
|
||||
{
|
||||
doneKeys[i] = dictList[i].keyword();
|
||||
dictList.set(i, fieldDict.lookupEntry(doneKeys[i]).clone());
|
||||
dictList.set
|
||||
(
|
||||
i,
|
||||
fieldDict.lookupEntry
|
||||
(
|
||||
doneKeys[i],
|
||||
false,
|
||||
true
|
||||
).clone()
|
||||
);
|
||||
fieldDict.remove(doneKeys[i]);
|
||||
}
|
||||
// Add remaining entries
|
||||
|
||||
Reference in New Issue
Block a user