diff options
author | Alexis211 <alexis211@gmail.com> | 2009-09-13 15:14:13 +0200 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2009-09-13 15:14:13 +0200 |
commit | 0b760a50b5aee05f1f34c1599b547c8b78d1d737 (patch) | |
tree | 8271581cdf49d2eef265d31bd9e1fc30c0ecaf4f /Source/Kernel/Library/WChar.class.cpp | |
parent | b808b613a5c7e0b6c6c45b28f7f0169dc13afaa2 (diff) | |
download | Melon-0b760a50b5aee05f1f34c1599b547c8b78d1d737.tar.gz Melon-0b760a50b5aee05f1f34c1599b547c8b78d1d737.zip |
Ram file system seems to work \o/
Diffstat (limited to 'Source/Kernel/Library/WChar.class.cpp')
-rw-r--r-- | Source/Kernel/Library/WChar.class.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Kernel/Library/WChar.class.cpp b/Source/Kernel/Library/WChar.class.cpp index c1a1977..bb1269d 100644 --- a/Source/Kernel/Library/WChar.class.cpp +++ b/Source/Kernel/Library/WChar.class.cpp @@ -19,11 +19,11 @@ WChar::WChar(char c) { affectAscii(c); } -WChar::WChar(char* c) { +WChar::WChar(const char* c) { affectUtf8(c); } -u32int WChar::utf8len(char* c) { +u32int WChar::utf8len(const char* c) { int i = 0, l = CMem::strlen(c), co = 0; while (i < l) { if ((c[i] & 0x80) == 0) i += 1; @@ -41,7 +41,7 @@ void WChar::affectAscii(char c) { else value = CP437[c + 128]; } -u32int WChar::affectUtf8(char* c) { //Returns the number of bytes for the character +u32int WChar::affectUtf8(const char* c) { //Returns the number of bytes for the character /*if ((c[0] & 0xB0) == 0x80) { //11000000b == 10000000b, means we are IN a sequence value = 0; return 1; |