diff options
Diffstat (limited to 'Source/Kernel/Library/BasicString.class.h')
-rw-r--r-- | Source/Kernel/Library/BasicString.class.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Kernel/Library/BasicString.class.h b/Source/Kernel/Library/BasicString.class.h index a4d56c7..f2c03a7 100644 --- a/Source/Kernel/Library/BasicString.class.h +++ b/Source/Kernel/Library/BasicString.class.h @@ -21,13 +21,18 @@ class BasicString { void affect(const BasicString<T> &other); void affect(const T* string, u32int length); void affect(const T value, u32int count = 1); + void operator= (const BasicString<T> &other) { affect(other); } bool compare(const BasicString<T> &other) const; bool compare(const T* string, u32int length) const; + bool operator== (const BasicString<T> &other) const { return compare(other); } + bool operator!= (const BasicString<T> &other) const { return !compare(other); } BasicString<T>& append(const BasicString<T> &other); BasicString<T>& append(const T* string, u32int length); BasicString<T>& append(const T other); + String& operator+= (const BasicString<T> &other) { return append(other); } + String& operator+= (const T other) { return append(other); } BasicString<T> concat(const BasicString<T> &other) const; BasicString<T> concat(const T* string, u32int length) const; |