ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/SiteMapper/Matcher.cpp
(Generate patch)

Comparing SiteMapper/Matcher.cpp (file contents):
Revision 303 by douglas, 2004-11-28T03:01:11-08:00 vs.
Revision 304 by douglas, 2004-12-12T21:52:24-08:00

# Line 17 | Line 17 | bool Matcher::match(const ext::String& s
17                  ::pcre_fullinfo(expression, NULL, PCRE_INFO_CAPTURECOUNT, &length);
18  
19                  int* substrings(new int[(++length *= 3)]);
20 <                int count(::pcre_exec(expression, NULL, stuff.NullTerminate(), stuff.GetSize(), 0, 0, substrings, length));
20 >                int count(::pcre_exec(expression, NULL, stuff.GetData().Begin(), stuff.GetData().GetSize(), 0, 0, substrings, length));
21  
22                  if (count > 0)
23                  {
# Line 25 | Line 25 | bool Matcher::match(const ext::String& s
25  
26                          for (int index(0); index < count; ++index)
27                          {
28 <                                ::pcre_copy_substring(stuff.NullTerminate(), substrings, count, index, substring, stuff.GetSize() + 1);
28 >                                ::pcre_copy_substring(stuff.GetData().Begin(), substrings, count, index, substring, stuff.GetData().GetSize() + 1);
29  
30                                  this->substrings.InsertLast(substring);
31                          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines