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 |
|
|
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 |
|
{ |
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 |
|
|