14.pcre_get_substring_list
原型:
#include <pcre.h>
int pcre_get_substring_list(const char *subject, int *ovector, int stringcount, const char ***listptr);
功能:获取匹配的所有子串
参数:
subject 成功匹配的串
ovector pcre_exec()使用的偏移向量
stringcount pcre_exec()的返回值
listptr 字符串列表的指针
15.pcre_info
原型:
#include <pcre.h>
int pcre_info(const pcre *code, int *optptr, int *firstcharptr);//已过时,使用pcre_fullinfo替代
16.pcre_maketables
原型:
#include <pcre.h>
const unsigned char *pcre_maketables(void);
功能:生成一个字符表,表中每一个元素的值不大于256,可以用它传给pcre_compile()替换掉它。
17.pcre_refcount
原型:
#include <pcre.h>
int pcre_refcount(pcre *code, int adjust);
功能:编译模式的引用计数
参数:
code 已编译的模式
adjust 调整的引用计数值
18.pcre_study
原型:
#include <pcre.h>
pcre_extra *pcre_study(const pcre *code, int options, const char **errptr);
功能:对编译的模式进行学习,提取可以加速匹配过程的信息。
参数:
code 已编译的模式
options 选项
errptr 出错消息
19.pcre_version
原型:
#include <pcre.h>
char *pcre_version(void);
功能:返回PCRE的版本信息