summaryrefslogtreecommitdiff
path: root/libutils/String16.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libutils/String16.cpp')
-rw-r--r--libutils/String16.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/libutils/String16.cpp b/libutils/String16.cpp
index 65396caca..ac12d8aa7 100644
--- a/libutils/String16.cpp
+++ b/libutils/String16.cpp
@@ -18,7 +18,6 @@
#include <utils/Log.h>
#include <utils/Unicode.h>
-#include <utils/String8.h>
#include <utils/threads.h>
#include <memory.h>
@@ -77,7 +76,7 @@ static char16_t* allocFromUTF8(const char* u8str, size_t u8len)
//printf("Created UTF-16 string from UTF-8 \"%s\":", in);
//printHexData(1, str, buf->size(), 16, 1);
//printf("\n");
-
+
return u16str;
}
@@ -127,7 +126,7 @@ String16::String16(const char16_t* o)
mString = str;
return;
}
-
+
mString = getEmptyString();
}
@@ -142,7 +141,7 @@ String16::String16(const char16_t* o, size_t len)
mString = str;
return;
}
-
+
mString = getEmptyString();
}
@@ -228,7 +227,7 @@ status_t String16::append(const String16& other)
} else if (otherLen == 0) {
return NO_ERROR;
}
-
+
SharedBuffer* buf = SharedBuffer::bufferFromData(mString)
->editResize((myLen+otherLen+1)*sizeof(char16_t));
if (buf) {
@@ -249,7 +248,7 @@ status_t String16::append(const char16_t* chrs, size_t otherLen)
} else if (otherLen == 0) {
return NO_ERROR;
}
-
+
SharedBuffer* buf = SharedBuffer::bufferFromData(mString)
->editResize((myLen+otherLen+1)*sizeof(char16_t));
if (buf) {