MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / findInPatterns

Function findInPatterns

src/OpenFOAM/db/dictionary/dictionary.C:174–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172
173
174bool Foam::dictionary::findInPatterns
175(
176 const bool patternMatch,
177 const word& Keyword,
178 DLList<entry*>::const_iterator& wcLink,
179 DLList<autoPtr<regExp>>::const_iterator& reLink
180) const
181{
182 if (patternEntries_.size())
183 {
184 while (wcLink != patternEntries_.end())
185 {
186 if
187 (
188 patternMatch
189 ? reLink()->match(Keyword)
190 : wcLink()->keyword() == Keyword
191 )
192 {
193 return true;
194 }
195
196 ++reLink;
197 ++wcLink;
198 }
199 }
200
201 return false;
202}
203
204
205bool Foam::dictionary::findInPatterns

Callers 5

foundFunction · 0.85
lookupEntryPtrFunction · 0.85
dictionary.CFile · 0.85
removeFunction · 0.85
changeKeywordFunction · 0.85

Calls 3

sizeMethod · 0.45
endMethod · 0.45
matchMethod · 0.45

Tested by

no test coverage detected