Field3D
|
Go to the source code of this file.
Functions | |
bool | match (const FieldRes *f, const std::string &patterns, const MatchFlags flags) |
bool | match (const FieldRes *f, const std::vector< std::string > &patterns, const MatchFlags flags) |
Matches a field's name and attribute against a set of patterns. More... | |
bool | match (const std::string &attribute, const std::string &patterns, const MatchFlags flags) |
bool | match (const std::string &attribute, const std::vector< std::string > &patterns, const MatchFlags flags) |
Matches an <attribute> string against a set of patterns. More... | |
bool | match (const std::string &name, const std::string &attribute, const std::string &patterns, const MatchFlags flags) |
bool | match (const std::string &name, const std::string &attribute, const std::vector< std::string > &patterns, const MatchFlags flags) |
Matches a <name>:<attribute> string against a set of patterns. More... | |
FIELD3D_NAMESPACE_OPEN std::vector< std::string > | split (const std::string &s) |
Splits a string into a vector of strings, using ',' as the separator. More... | |
std::vector< std::string > | split (const std::string &s, const std::string &separatorChars) |
Splits a string into a vector of strings, given separator characters. More... | |
Contains pattern matching implementations
Definition in file PatternMatch.cpp.
FIELD3D_NAMESPACE_OPEN std::vector<std::string> split | ( | const std::string & | s | ) |
Splits a string into a vector of strings, using ',' as the separator.
Definition at line 75 of file PatternMatch.cpp.
Referenced by match().
std::vector<std::string> split | ( | const std::string & | s, |
const std::string & | separatorChars | ||
) |
Splits a string into a vector of strings, given separator characters.
Definition at line 83 of file PatternMatch.cpp.
bool match | ( | const std::string & | name, |
const std::string & | attribute, | ||
const std::vector< std::string > & | patterns, | ||
const MatchFlags | flags | ||
) |
Matches a <name>:<attribute> string against a set of patterns.
Definition at line 102 of file PatternMatch.cpp.
References MatchEmptyPattern.
Referenced by Sparse::CheckAllEqual< Data_T >::check(), and match().
bool match | ( | const std::string & | name, |
const std::string & | attribute, | ||
const std::string & | patterns, | ||
const MatchFlags | flags | ||
) |
bool match | ( | const std::string & | attribute, |
const std::vector< std::string > & | patterns, | ||
const MatchFlags | flags | ||
) |
Matches an <attribute> string against a set of patterns.
Definition at line 163 of file PatternMatch.cpp.
References MatchEmptyPattern.
bool match | ( | const std::string & | attribute, |
const std::string & | patterns, | ||
const MatchFlags | flags | ||
) |
bool match | ( | const FieldRes * | f, |
const std::vector< std::string > & | patterns, | ||
const MatchFlags | flags | ||
) |
Matches a field's name and attribute against a set of patterns.
Definition at line 217 of file PatternMatch.cpp.
References FieldBase::attribute, match(), and FieldBase::name.
bool match | ( | const FieldRes * | f, |
const std::string & | patterns, | ||
const MatchFlags | flags | ||
) |
Definition at line 226 of file PatternMatch.cpp.
References FieldBase::attribute, match(), FieldBase::name, and split().