ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/zoe/trunk/Buddy.cpp
(Generate patch)

Comparing trunk/Buddy.cpp (file contents):
Revision 21 by douglas, 2004-07-16T23:37:41-07:00 vs.
Revision 46 by douglas, 2004-08-16T18:52:59-07:00

# Line 6 | Line 6
6  
7   #include "Zoe.hpp"
8  
9 < std::ostream& operator<<(std::ostream& sout, const Buddy& buddy)
9 > ext::String Buddy::getRssLink() const
10   {
11 <        sout << buddy.login << '(' << buddy.rss << ')';
11 >        std::string link(this->link);
12 >        
13 >        return link.substr(0, link.rfind('/')) + '/' + rss;
14 > }
15 >
16 > ext::String Buddy::getAtomLink() const
17 > {
18 >        std::string link(this->link);
19  
20 <        return sout;
20 >        return link.substr(0, link.rfind('/')) + '/' + atom;
21   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines