diff options
author | fcolin | 2007-02-01 12:54:22 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 12:54:22 +0000 |
commit | a7362ff18ea16d485fdecbd7a7866bccb5350a88 (patch) | |
tree | 27208e50bc4e205035ca18b93848df80c2164d2d /Bus/Ivy | |
parent | 6513325e7bd1f55d188fd0b6f65893f684f5dfab (diff) | |
download | ivy-cplusplus-a7362ff18ea16d485fdecbd7a7866bccb5350a88.zip ivy-cplusplus-a7362ff18ea16d485fdecbd7a7866bccb5350a88.tar.gz ivy-cplusplus-a7362ff18ea16d485fdecbd7a7866bccb5350a88.tar.bz2 ivy-cplusplus-a7362ff18ea16d485fdecbd7a7866bccb5350a88.tar.xz |
Utilisateur : Fcolin Date : 5/11/02 Heure : 9:57 Archivé dans $/Bus/Ivy Commentaire: (vss 6)
Diffstat (limited to 'Bus/Ivy')
-rw-r--r-- | Bus/Ivy/DataTypes.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Bus/Ivy/DataTypes.h b/Bus/Ivy/DataTypes.h index acc4aa0..2267de7 100644 --- a/Bus/Ivy/DataTypes.h +++ b/Bus/Ivy/DataTypes.h @@ -79,16 +79,18 @@ public: str.append( right.ptr, right.size);
return str;
}
- operator +=(string s)
+ const string& operator +=(string s)
{
- append( s.ptr, s.size );
+ return append( s.ptr, s.size );
}
- operator +=(const char* s)
+ const string& operator +=(const char* s)
{
- append( s, strlen(s) );
+ return append( s, strlen(s) );
+ }
+ const string& operator +=(char c)
+ {
+ return append( &c, 1);
}
- operator +=(char c)
- { append( &c, 1);}
string operator +(string s) const
{ string str ( ptr, size ); str.append( s.ptr, s.size ); return str; }
string operator +(const char c) const
|