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

Comparing SiteMapper/Page.cpp (file contents):
Revision 559 by douglas, 2005-07-17T04:58:55-07:00 vs.
Revision 637 by douglas, 2005-12-31T21:32:21-08:00

# Line 4 | Line 4
4   //
5   // $Id$
6  
7 < #include <menes/cxx/standard.hh>
7 > #include <cxx/standard.hh>
8  
9 < #include <menes/api/pcre/regex.hpp>
9 > #include <api/pcre/regex.hpp>
10  
11   #include "SiteMapper.hpp"
12  
13 < void Page::SetUrl(const cse::String& url)
13 > void Page::SetUrl(const cse::String &url)
14   {
15          static api::Pcre::RegEx url_(_B("^http://([^/]+)(/.*)?$"));
16  
# Line 23 | Line 23 | void Page::SetUrl(const cse::String& url
23                  throw ext::StringException(url);
24   }
25  
26 < bool Page::operator==(const cse::String& thing)
26 > bool Page::operator==(const cse::String &thing)
27   {
28          return address == thing || path == thing || title == thing;
29   }
30  
31 < bool Page::operator==(const Page& page) const
31 > bool Page::operator==(const Page &page) const
32   {
33          if (address == page.address)
34          {
# Line 38 | Line 38 | bool Page::operator==(const Page& page)
38          return false;
39   }
40  
41 < xml::TextWriter& operator<<(xml::TextWriter& xml, Page& page)
41 > xml::TextWriter &operator<<(xml::TextWriter &xml, Page &page)
42   {
43          xml::ScopeElement item(xml, _B("item"));
44  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines