Sword pcre库函数学习三

 2023-09-10 阅读 19 评论 0

摘要: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
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的版本信息

 

转载于:https://www.cnblogs.com/zhanggaofeng/p/9733224.html

版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。

原文链接:https://hbdhgg.com/3/36559.html

发表评论:

本站为非赢利网站,部分文章来源或改编自互联网及其他公众平台,主要目的在于分享信息,版权归原作者所有,内容仅供读者参考,如有侵权请联系我们删除!

Copyright © 2022 匯編語言學習筆記 Inc. 保留所有权利。

底部版权信息