filter tree by attribute matching
bool tree_filter_by_attrib_match( TreeNode & tr, int iUnitNodeID, LPCSTR lpcstrAttrib, LPCSTR lpcstrPattern, bool bCaseSensitive = false )
Returns true on success, false if failure
EX1
#include <GetNBox.h> #define ID_FB_FUNCTION 1010 //this function filter tree node label beginning with "ocmath_" out void tree_filter_by_attrib_match_ex1() { Tree tr("c:\\sample.xml"); tree_filter_by_attrib_match(tr, ID_FB_FUNCTION, STR_LABEL_ATTRIB, "ocmath_*"); }
tree_filter_by_attrib_find
origin.h