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.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/Source/Kernel/Library/String.class.h b/Source/Kernel/Library/String.class.h
index 6b48a30..01cc6a8 100644
--- a/Source/Kernel/Library/String.class.h
+++ b/Source/Kernel/Library/String.class.h
@@ -23,23 +23,25 @@ class String {
void operator= (const String &other);
void operator= (const char* string);
- bool operator== (const String &other);
- bool operator== (const char* string);
+ bool operator== (const String &other) const;
+ bool operator== (const char* string) const;
+ bool operator!= (const String &other) { return !(operator== (other)); }
+ bool operator!= (const char* other) { return !(operator== (other)); }
String &operator+= (const String &other);
String &operator+= (const char* other);
String &operator+= (WChar other);
- String &operator+ (const String &other);
- String &operator+ (const char* other);
- String &operator+ (WChar other);
- s32int toInt();
- u32int toInt16(); //From HEX
+ String &operator+ (const String &other) const;
+ String &operator+ (const char* other) const;
+ String &operator+ (WChar other) const;
+ s32int toInt() const;
+ u32int toInt16() const; //From HEX
WChar& operator[] (int index) const;
u32int size() const;
void clear();
bool empty() const;
- Vector<String> split(WChar c);
+ Vector<String> split(WChar c) const;
String substr(s32int start, s32int size);
};