Sword pcre庫函數學習二

來源:互聯網
上載者:User

標籤:字串   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庫函數學習二

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.