|
Field3D
|
Go to the source code of this file.
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.
References FIELD3D_MTX_T, and split().
| 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.
References FIELD3D_MTX_T.
| 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 FIELD3D_MTX_T, and MatchEmptyPattern.
Referenced by Sparse::CheckAllEqual< Data_T >::check(), match(), match(), match(), and match().
| bool match | ( | const std::string & | name, |
| const std::string & | attribute, | ||
| const std::string & | patterns, | ||
| const MatchFlags | flags | ||
| ) |
Definition at line 153 of file PatternMatch.cpp.
References FIELD3D_MTX_T, match(), and split().
| 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 FIELD3D_MTX_T, and MatchEmptyPattern.
| bool match | ( | const std::string & | attribute, |
| const std::string & | patterns, | ||
| const MatchFlags | flags | ||
| ) |
Definition at line 208 of file PatternMatch.cpp.
References FIELD3D_MTX_T, match(), and split().
| 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 FIELD3D_MTX_T, and match().
| bool match | ( | const FieldRes * | f, |
| const std::string & | patterns, | ||
| const MatchFlags | flags | ||
| ) |