| 172 | |
| 173 | |
| 174 | bool 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 | |
| 205 | bool Foam::dictionary::findInPatterns |
no test coverage detected