標籤:字串 get sub class vector gnu tor const ons
9.pcre_free_substring_list 原型: #include <pcre.h> void pcre_free_substring_list(const char **stringptr); 功能:釋放由pcre_get_substring_list申請的記憶體空間 參數: stringptr 指向字串數組的指標
10.pcre_fullinfo 原型: #include <pcre.h> int pcre_fullinfo(const pcre *code, const pcre_extra *extra, int what, void *where); 功能:返回編譯出來的模式的資訊 參數: code 編譯好的模式 extra pcre_study()的傳回值,或者NULL what 什麼資訊 where 儲存位置
11.pcre_get_named_substring 原型: #include <pcre.h> int pcre_get_named_substring(const pcre *code, const char *subject, int *ovector, int stringcount, const char *stringname, const char **stringptr); 功能:根據編號擷取捕獲的字串 參數: code 成功匹配的模式 subject 匹配的串 ovector pcre_exec()使用的位移向量 stringcount pcre_exec()的傳回值 stringname 捕獲字串的名字 stringptr 存放結果的字串指標
12.pcre_get_stringnumber 原型: #include <pcre.h> int pcre_get_stringnumber(const pcre *code, const char *name); 功能:根據命名捕獲的名字擷取對應的編號 參數: code 成功匹配的模式 name 捕獲名字
13.pcre_get_substring 原型: #include <pcre.h> int pcre_get_substring(const char *subject, int *ovector, int stringcount, int stringnumber, const char **stringptr); 功能:擷取匹配的子串 參數: subject 成功匹配的串 ovector pcre_exec()使用的位移向量 stringcount pcre_exec()的傳回值 stringnumber 擷取的字串編號 stringptr 字串指標
Sword pcre庫函數學習二