diff options
author | Alexis211 <alexis211@gmail.com> | 2009-09-19 17:44:34 +0200 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2009-09-19 17:44:34 +0200 |
commit | a24aa25390b8a648a90fb12a0eac6726840be716 (patch) | |
tree | bd85ecb8f4eb8abe0352137977ae07138936b308 /Source/Kernel/Library/BasicString.class.h | |
parent | e1680016d88eda4c20fdce9e27e7571a05740ee9 (diff) | |
download | Melon-a24aa25390b8a648a90fb12a0eac6726840be716.tar.gz Melon-a24aa25390b8a648a90fb12a0eac6726840be716.zip |
More work
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; |