diff options
Diffstat (limited to 'common/str.cpp')
-rw-r--r-- | common/str.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/common/str.cpp b/common/str.cpp index 3691088e6a..cd2bd631ac 100644 --- a/common/str.cpp +++ b/common/str.cpp @@ -255,6 +255,28 @@ bool ConstString::operator >= (const ConstString &x) const { return (x <= *this); } +#pragma mark - + +String operator +(const String &x, const String &y) { + String temp(x); + temp += y; + return temp; +} + +String operator +(const char *x, const String &y) { + String temp(x); + temp += y; + return temp; +} + +String operator +(const String &x, const char *y) { + String temp(x); + temp += y; + return temp; +} + +#pragma mark - + bool operator == (const char* y, const ConstString &x) { return (x == y); } |