Displaying 2 results from an estimated 2 matches for "prefix_type".
2007 Oct 19
1
Re: [Xapian-commits] 9476: trunk/xapian-core/ trunk/xapian-core/include/xapian/ trunk/xapian-core/queryparser/ trunk/xapian-core/tests/
...o change this behaviour. This
> also avoids the need to deprecate these methods which will force all
> users to update their code.
I think leaving the old methods in place and undeprecated with these
semantics is fine, but I'd argue the the new, 3 argument, form of
add_prefix, and the prefix_type enum are good additions because they
lead to future improvements (although, they're possibly not needed yet).
I thought that the consensus on the query parser was that it should
become more configurable, and one of the ways in which it should be more
configurable is being able to generate t...
2017 Jun 21
6
RFC: Cleaning up the Itanium demangler
...uot;;
+ for (size_t i = 0; i < nchildren; ++i)
+ {
+ if (i) s += ", ";
+ children[i]->print(s);
+ }
+ s += ")";
+ }
+};
+
+// FIXME: We should replace all uses of these with actual nodes.
+inline namespace FIXME {
+class prefix_type : public type
+{
+ string_ref prefix;
+ node* child;
+public:
+ prefix_type(string_ref prefix, node* child)
+ : prefix(prefix), child(child) {}
+
+ void print_left(stream& s) const override
+ {
+ s += prefix;
+ child->print(s);
+ }
+};
+
+class then...