@@ -66,12 +66,12 @@ Regex::~Regex() {
6666}
6767
6868
69- std::list<SMatch > Regex::searchAll (const std::string& s) const {
69+ std::list<RegexMatch > Regex::searchAll (const std::string& s) const {
7070 const char *subject = s.c_str ();
7171 const std::string tmpString = std::string (s.c_str (), s.size ());
7272 int ovector[OVECCOUNT];
7373 int rc, i, offset = 0 ;
74- std::list<SMatch > retList;
74+ std::list<RegexMatch > retList;
7575
7676 do {
7777 rc = pcre_exec (m_pc, m_pce, subject,
@@ -87,7 +87,7 @@ std::list<SMatch> Regex::searchAll(const std::string& s) const {
8787 }
8888 std::string match = std::string (tmpString, start, len);
8989 offset = start + len;
90- retList.push_front (SMatch (match, start));
90+ retList.push_front (RegexMatch (match, start));
9191
9292 if (len == 0 ) {
9393 rc = 0 ;
@@ -99,13 +99,13 @@ std::list<SMatch> Regex::searchAll(const std::string& s) const {
9999 return retList;
100100}
101101
102- int Regex::search (const std::string& s, SMatch *match) const {
102+ int Regex::search (const std::string& s, RegexMatch *match) const {
103103 int ovector[OVECCOUNT];
104104 int ret = pcre_exec (m_pc, m_pce, s.c_str (),
105105 s.size (), 0 , 0 , ovector, OVECCOUNT) > 0 ;
106106
107107 if (ret > 0 ) {
108- *match = SMatch (
108+ *match = RegexMatch (
109109 std::string (s, ovector[ret-1 ], ovector[ret] - ovector[ret-1 ]),
110110 0 );
111111 }
0 commit comments