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

Method match

src/OpenFOAM/primitives/strings/wordRe/wordReI.H:202–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200
201
202inline bool Foam::wordRe::match(const std::string& str, bool literalMatch) const
203{
204 if (literalMatch || !re_.exists())
205 {
206 // check as string
207 return (str == *this);
208 }
209 else
210 {
211 // check as regex
212 return re_.match(str);
213 }
214}
215
216
217inline Foam::string Foam::wordRe::quotemeta() const

Callers 13

mainFunction · 0.45
mainFunction · 0.45
dictionaryFunction · 0.45
solutionControl.CFile · 0.45
matchFunction · 0.45
findInPatternsFunction · 0.45
IOobjectList.CFile · 0.45
namesFunction · 0.45
combineFunction · 0.45
combineFunction · 0.45
combineFunction · 0.45

Calls 1

existsMethod · 0.80

Tested by 2

mainFunction · 0.36
mainFunction · 0.36