zebra_xpath.h
来自「harvest是一个下载html网页得机器人」· C头文件 代码 · 共 37 行
H
37 行
/* Moved from zrpn.c -pop */#ifndef ZEBRA_XPATH_H#define ZEBRA_XPATH_H#define XPATH_STEP_COUNT 10struct xpath_predicate { int which; union {#define XPATH_PREDICATE_RELATION 1 struct { char *name; char *op; char *value; } relation;#define XPATH_PREDICATE_BOOLEAN 2 struct { const char *op; struct xpath_predicate *left; struct xpath_predicate *right; } boolean; } u;};struct xpath_location_step { char *part; struct xpath_predicate *predicate;};int zebra_parse_xpath_str(const char *xpath_string, struct xpath_location_step *xpath, int max, NMEM mem);void dump_xp_steps (struct xpath_location_step *xpath, int no);#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?