| 44 | // Table matcher |
| 45 | |
| 46 | TableMatcher::TableMatcher(MemoryPool& pool, |
| 47 | const string& includeFilter, |
| 48 | const string& excludeFilter) |
| 49 | : m_tables(pool) |
| 50 | { |
| 51 | if (includeFilter.hasData()) |
| 52 | { |
| 53 | m_includeMatcher.reset(FB_NEW_POOL(pool) SimilarToRegex( |
| 54 | pool, SimilarToFlag::CASE_INSENSITIVE, |
| 55 | includeFilter.c_str(), includeFilter.length(), |
| 56 | "\\", 1)); |
| 57 | } |
| 58 | |
| 59 | if (excludeFilter.hasData()) |
| 60 | { |
| 61 | m_excludeMatcher.reset(FB_NEW_POOL(pool) SimilarToRegex( |
| 62 | pool, SimilarToFlag::CASE_INSENSITIVE, |
| 63 | excludeFilter.c_str(), excludeFilter.length(), |
| 64 | "\\", 1)); |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | bool TableMatcher::matchTable(const MetaName& tableName) |
| 69 | { |
nothing calls this directly
no test coverage detected