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

Method NodeString

extern/re2/re2/prefilter_tree.cc:116–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116std::string PrefilterTree::NodeString(Prefilter* node) const {
117 // Adding the operation disambiguates AND/OR/atom nodes.
118 std::string s = StringPrintf("%d", node->op()) + ":";
119 if (node->op() == Prefilter::ATOM) {
120 s += node->atom();
121 } else {
122 for (size_t i = 0; i < node->subs()->size(); i++) {
123 if (i > 0)
124 s += ',';
125 s += StringPrintf("%d", (*node->subs())[i]->unique_id());
126 }
127 }
128 return s;
129}
130
131bool PrefilterTree::KeepNode(Prefilter* node) const {
132 if (node == NULL)

Callers

nothing calls this directly

Calls 5

StringPrintfFunction · 0.85
subsMethod · 0.80
unique_idMethod · 0.80
opMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected