summaryrefslogtreecommitdiff
path: root/Source/Kernel/Library/String.class.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Kernel/Library/String.class.h')
-rw-r--r--Source/Kernel/Library/String.class.h20
1 files changed, 5 insertions, 15 deletions
diff --git a/Source/Kernel/Library/String.class.h b/Source/Kernel/Library/String.class.h
index ad1524d..a10ba7a 100644
--- a/Source/Kernel/Library/String.class.h
+++ b/Source/Kernel/Library/String.class.h
@@ -15,24 +15,20 @@ class String : public BasicString<WChar> {
String(const String &other);
virtual ~String();
- void affect(const String &other) { BasicString<WChar>::affect(other); }
void affect(const char* string, u8int encoding = UE_UTF8);
- void operator= (const String &other) { affect(other); }
void operator= (const char* other) { affect(other); }
+ void operator= (const String& other) { BasicString<WChar>::affect(other); }
- bool compare(const String &other) const { return BasicString<WChar>::compare(other); }
bool compare(const char* string, u8int encoding = UE_UTF8) const;
- bool operator== (const String &other) const { return compare(other); }
bool operator== (const char* other) const { return compare(other); }
- bool operator!= (const String &other) { return !compare(other); }
bool operator!= (const char* other) { return !compare(other); }
+ bool operator== (const String& other) const { return BasicString<WChar>::compare(other); }
+ bool operator!= (const String& other) const { return !BasicString<WChar>::compare(other); }
- String& append(const String &other) { BasicString<WChar>::append(other); return *this; }
String& append(const char* other, u8int encoding = UE_UTF8);
- String& append(WChar other) { BasicString<WChar>::append(other); return *this; }
- String &operator+= (const String &other) { return append(other); }
+ String &operator+= (const String &other) { BasicString<WChar>::append(other); return *this; }
String &operator+= (const char* other) { return append(other); }
- String &operator+= (WChar other) { return append(other); }
+ String &operator+= (WChar other) { BasicString<WChar>::append(other); return *this; }
String concat(const String &other) const;
String concat(const char* other, u8int encoding = UE_UTF8) const;
@@ -44,12 +40,6 @@ class String : public BasicString<WChar> {
s64int toInt() const; //Convert from DEC
u64int toInt16() const; //Convert from HEX
- WChar& operator[] (int index) const;
-
- u32int size() const;
- void clear();
- bool empty() const;
-
Vector<String> split(WChar c) const;
String substr(s32int start, u32int size);