ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/gclib/gclib/GStr.h
(Generate patch)
# Line 26 | Line 26
26          friend bool operator>(const char* s1, const GStr& s2);
27          friend bool operator>=(const char* s1, const GStr& s2);
28          friend bool operator!=(const char* s1, const GStr& s2);
29 <        friend void swap(GStr& s1, GStr& s2);
29 >        friend void Gswap(GStr& s1, GStr& s2);
30      public:
31          GStr();
32          GStr(const GStr& s);
# Line 197 | Line 197
197   return my_data->chars;
198   }
199  
200
200   inline bool operator>=(const char *s1, const GStr& s2) {
201   return (strcmp(s1, s2.chars()) >= 0);
202   }
# Line 206 | Line 205
205   return (strcmp(s1, s2.chars()) != 0);
206   }
207  
208 < inline void swap(GStr& s1, GStr& s2) {
208 > inline void Gswap(GStr& s1, GStr& s2) {
209   GStr::Data *tmp = s1.my_data; s1.my_data = s2.my_data;
210   s2.my_data = tmp;
211   }
212  
214
213   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines