MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / TableMatcher

Method TableMatcher

src/jrd/replication/Manager.cpp:46–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44// Table matcher
45
46TableMatcher::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
68bool TableMatcher::matchTable(const MetaName& tableName)
69{

Callers

nothing calls this directly

Calls 5

SimilarToRegexClass · 0.85
hasDataMethod · 0.45
resetMethod · 0.45
c_strMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected