From 32dc08cc3c732aff96456d1a596bd3825c5c5c51 Mon Sep 17 00:00:00 2001 From: kim Date: Wed, 2 Nov 2011 00:38:22 +0000 Subject: [PATCH] Expose Tag->SelectNext in the interface git-svn-id: svn+ssh://idea.nguyen.vg/svn/sxsi/trunk/XMLTree@1160 3cdefd35-fc62-479d-8e8d-bae585ffb9ca --- XMLTree.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/XMLTree.h b/XMLTree.h index 676c214..313f7ca 100644 --- a/XMLTree.h +++ b/XMLTree.h @@ -740,6 +740,10 @@ public: /** TaggedDesc(x,tag): returns the first node tagged tag with larger * preorder than x and within the subtree of x. Returns NULT if there * is none. */ + inline treeNode TaggedNext(treeNode x, TagType tag) + { + return tagpos2node(Tags->select_next(tag,node2tagpos(x))); + } inline treeNode TaggedDescendant(treeNode x, TagType tag) { -- 2.17.1