summaryrefslogtreecommitdiff
path: root/Source/Kernel/Library/String.class.h
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2009-08-29 19:03:00 +0200
committerAlexis211 <alexis211@gmail.com>2009-08-29 19:03:00 +0200
commit9ad8e2fe0242da26dae7fca2b180640637c8c062 (patch)
tree92fdd3f2195221a110d2c4f1f2e98bd6505578ed /Source/Kernel/Library/String.class.h
parent0139012d683036fb661fed62babb71f59ec9ab45 (diff)
downloadMelon-9ad8e2fe0242da26dae7fca2b180640637c8c062.tar.gz
Melon-9ad8e2fe0242da26dae7fca2b180640637c8c062.zip
We now have (partial) support for UTF-8.
Diffstat (limited to 'Source/Kernel/Library/String.class.h')
-rw-r--r--Source/Kernel/Library/String.class.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/Kernel/Library/String.class.h b/Source/Kernel/Library/String.class.h
index 58237f0..d086b31 100644
--- a/Source/Kernel/Library/String.class.h
+++ b/Source/Kernel/Library/String.class.h
@@ -2,12 +2,13 @@
#define DEF_STRING_CLASS
#include <Core/common.wtf.h>
+#include <Library/wchar.class.h>
template <typename T> class Vector;
class String {
private:
- char *m_string;
+ wchar *m_string;
u32int m_length;
public:
@@ -26,20 +27,19 @@ class String {
bool operator== (char* string);
String &operator+= (String &other);
String &operator+= (char* other);
- String &operator+= (char other);
+ String &operator+= (wchar other);
String &operator+ (String &other);
String &operator+ (char* other);
- String &operator+ (char other);
- operator char* ();
+ String &operator+ (wchar other);
s32int toInt();
u32int toInt16(); //From HEX
- char& operator[] (int index);
+ wchar& operator[] (int index);
u32int size();
void clear();
bool empty();
- Vector<String> split(char c);
+ Vector<String> split(wchar c);
String substr(s32int start, s32int size);
};