MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / declarePrefix

Method declarePrefix

base/poco/XML/src/NamespaceSupport.cpp:41–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39
40
41bool NamespaceSupport::declarePrefix(const XMLString& prefix, const XMLString& namespaceURI)
42{
43 poco_assert (_contexts.size() > 0);
44
45 Context& ctx = _contexts.back();
46 if (ctx.find(prefix) == ctx.end())
47 {
48 ctx.insert(Context::value_type(prefix, namespaceURI));
49 return true;
50 }
51 else return false;
52}
53
54
55bool NamespaceSupport::undeclarePrefix(const XMLString& prefix)

Callers 4

startPrefixMappingMethod · 0.80
writeStartElementMethod · 0.80
declareNamespacesMethod · 0.80

Calls 5

sizeMethod · 0.45
backMethod · 0.45
findMethod · 0.45
endMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected